Score
0
Watch 3.5K Star 9.2K Fork 4K

卓源软件 / JeeSite 4.2JavaAGPL-3.0

redis调用报错

Open
lailai  Opened this issue

看过历史的帖子,按照帖子设置的redis参数。

输入图片说明

客户端也可以连接
输入图片说明

当代码调用
JedisUtils.set("XXXX, vc, 120)方法时,系统报错。提示
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'redis.clients.jedis.JedisPool' available

输入图片说明

total 3 participants

Comments (2)

难以置信 2018-08-23 16:59

弄好了吗,大佬,能教教我怎么弄吗,有没有示例或者视频

lll 2018-09-12 10:44

查看源码
@configuration
@ConditionalOnProperty(name = {"redis.enabled"}, havingValue = "true", matchIfMissing = true)
public class JedisConfig {

所以redis配置那边要加个enabled属性启用

redis: 
  enabled: true

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/thinkgem/jeesite4.git
git@gitee.com:thinkgem/jeesite4.git
thinkgem
jeesite4
JeeSite 4.2

Search