引入Redisson包后无法启动

来源:4-7 Redisson分布式锁的应用

否则悲伤从何而来

2021-02-07

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘redissonConnectionFactory’ defined in class path resource [org/redisson/spring/starter/RedissonAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘redissonConnectionFactory’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘redisson’ defined in class path resource [org/redisson/spring/starter/RedissonAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.redisson.api.RedissonClient]: Factory method ‘redisson’ threw exception; nested exception is org.redisson.client.RedisConnectionException: Unable to connect to Redis server: /127.0.0.1:6379

redisson引入后一直报错,无法启动,有类似的吗?

写回答

1回答

否则悲伤从何而来

提问者

2021-02-07

解决了,密码不能为空,如果为空,去掉yml里password这一行

0
0

高级Redis进阶课 解决Redis实际问题+掌握Redis6.x特性

以项目整合Redis各种场景,从此轻松应对各类Redis难题

934 学习 · 353 问题

查看课程