Error creating bean with name ‘lettuceClientResources‘ defined in class path resource
报错信息
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lettuceClientResources' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/LettuceConnectionConfiguration.class]: Bean instantiation via factory method failed; ....
可以看到信息中出现了redis
。我的报错原因是:在pom.xml文件中添加了spring-boot-starter-data-redis的依赖,但是没有配置redis连接信息。