|  |  | 
 |  |  | import com.fasterxml.jackson.databind.ObjectMapper; | 
 |  |  | import org.springframework.cache.annotation.CachingConfigurerSupport; | 
 |  |  | import org.springframework.context.annotation.Bean; | 
 |  |  | import org.springframework.context.annotation.Configuration; | 
 |  |  | import org.springframework.data.redis.connection.RedisConnectionFactory; | 
 |  |  | import org.springframework.data.redis.core.*; | 
 |  |  | import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; | 
 |  |  | 
 |  |  |  * Redis配置类 | 
 |  |  |  * Created by vincent on 2019-12-23 | 
 |  |  |  */ | 
 |  |  | //@Configuration | 
 |  |  | @Configuration | 
 |  |  | //@EnableCaching // 开启数据缓存机制 | 
 |  |  | public class RedisConfig extends CachingConfigurerSupport { | 
 |  |  |  |