jedis.JedisPool' that could not be found.
来源:2-5 集成redis上

薛天清
2019-02-14
jedis.JedisPool’ that could not be found.
启动项目出现以下错误;
redisConfig SpingBoot无法找到此路径;由于redisPoolFactory要引用此处从配置文件中获取到的值,猜测原因可能为此处未获取导致,所以修改RedisPoolFactory代买,将引用配置文件的值直接写死到代码中,如下图,
引用之后还有错误;尝试修改@Autowired为@Autowired(required=false)、@Resource 等注解 均失败;
下图为RedisService代码图片
求老师解答;
写回答
1回答
-
@Service public class RedisPoolFactory 检查下@Service
012019-02-14
相似问题