问答详情
源自:9-1 springboot整合缓存Redis

redis启动就报错

Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration 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 classes 'org.apache.commons.pool2.impl.GenericObjectPool', 'redis.clients.jedis.Jedis'

- Bean method 'redisConnectionFactory' not loaded because @ConditionalOnClass did not find required class 'io.lettuce.core.RedisClient'


提问者:qq_不瘦到140绝不改名_0 2018-10-19 14:53

个回答

  • 全栈工程师_民
    2019-02-22 12:22:17

    怎么解决?

  • 晴颜
    2018-10-24 23:08:06

    连接池写的不对……