【springboot】Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource

在使用lettuce作为redis连接池管理的时候,启动报错如下:

【springboot】Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource_第1张图片

原因是因为只引入了starter-redis启动依赖.

解决:引入commons-pool2依赖即可:


            org.apache.commons
            commons-pool2
        

你可能感兴趣的:(springboot,redis,spring,boot)