在5-14中启动时报错

来源:5-14 开发用户redis-session

_leapfrog

2019-04-20

老师你好,启动服务时遇到报以下错误:

http://img.mukewang.com/szimg/5cba940f00018f0f16990923.jpg

初学spring boot框架,不知道这个是什么原因,我把相关包删除,重新更新maven也不行。

http://img.mukewang.com/szimg/5cba941f0001782f07740354.jpg


写回答

3回答

_leapfrog

提问者

2019-04-20

嗯 我已经进群了。我是在win下装的redis, redis的工具也能连接上了,其他也都配置了。

其他配置是这样的:

//img.mukewang.com/szimg/5cbac4e10001478210160295.jpg

//img.mukewang.com/szimg/5cbac4e80001ee6909030443.jpg

//img.mukewang.com/szimg/5cbac52700014de311540839.jpg

但还是报这个错,这大概是因为哪些原因导致的?

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration$RedisConfiguration required a bean of type 'org.springframework.data.redis.connection.RedisConnectionFactory' that could not be found.
 - Bean method 'redisConnectionFactory' not loaded because @ConditionalOnClass did not find required class 'org.apache.commons.pool2.impl.GenericObjectPool'


Action:

Consider revisiting the conditions above or defining a bean of type 'org.springframework.data.redis.connection.RedisConnectionFactory' in your configuration.

0
2
_leapfrog
回复
风间影月
好的。
2019-04-20
共2条回复

_leapfrog

提问者

2019-04-20

1.5.12.RELEASE

0
3
风间影月
或者我有个建议。没有接触过springboot,可以先到慕课网搜一下老师的springboot课程,是免费的,其中也包含了redis整合
2019-04-20
共3条回复

风间影月

2019-04-20

Springboot用的什么版本啊?

0
0

Spring Boot短视频小程序开发 全栈式实战项目

一门课程带你搞定短视频小程序全栈开发,毕业设计之利器!

2613 学习 · 1951 问题

查看课程