原因:
spring-boot-starter-data-redis 默认采用 lettuce作为redis客户端, lettuce 底层采用 netty实现 , 可以在多个线程中并发访问,且线程安全,在使用lettuce需要配置线程池
解决:
添加线程池maven依赖
org.apache.commons
commons-pool2
2.9.0
本人解决时查看博客:https://blog.csdn.net/fei003/article/details/109786403



