在使用SpringBoot 2.0.1RELEASE版本时,发现配置文件application.properties
中关于Redis的配置报错,错误信息为:deprecated configuration property 'spring.redis.pool.max-active'
,猜想应该是版本不对,发现SpringBoot 在1.4前后集成Redis发生了一些变化。
SpringBoot低版本的Redis配置
<!--引入spring-boot-starter-redis(1.4版本前)-->
<dependency>
<groupId>org.springframework.boot</groupId>