在springbooot2.0以上RedisCacheManager发生了变化……
@SuppressWarnings("rawtypes")
public RedisCacheManager(RedisOperations redisOperations) {
this(redisOperations, Collections.<String> emptyList());
}
去除了上面的构造方法
所以在配置时报错
RedisCacheManager rcm = new RedisCacheManager(redisTemplate);