spring-boot整合redis和lettuce
1.在项目pom中引人 <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId> </dependency> <!--redis数据库--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 在application.properties配置 #redis数据库配置 #连接池最大连接数(使用负值表示没有限制) spring.redis.lettuce.pool.max-active=-1 #连接池中的最大空闲连接 spring.redis.lettuce.pool.max-idle=100 #连接池最大阻塞等待时...