| @@ -69,7 +69,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<PushLimit> j = new Jackson2JsonRedisSerializer<PushLimit>(PushLimit.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| template.setValueSerializer(j); | |||
| @@ -90,7 +89,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<WxScoreRules> j = new Jackson2JsonRedisSerializer<WxScoreRules>(WxScoreRules.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| template.setValueSerializer(j); | |||
| @@ -112,7 +110,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| @@ -135,7 +132,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| @@ -158,7 +154,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| template.setValueSerializer(j); | |||
| @@ -180,7 +175,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| template.setValueSerializer(j); | |||
| @@ -201,7 +195,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<List> j = new Jackson2JsonRedisSerializer<List>(List.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| template.setValueSerializer(j); | |||
| @@ -222,7 +215,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<WxCouponCVo> j = new Jackson2JsonRedisSerializer<WxCouponCVo>(WxCouponCVo.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| template.setValueSerializer(j); | |||
| @@ -243,7 +235,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<PageInfo> j = new Jackson2JsonRedisSerializer<PageInfo>(PageInfo.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| @@ -265,7 +256,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<WxBuser> j = new Jackson2JsonRedisSerializer(WxBuser.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| @@ -287,7 +277,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<WxOrder> j = new Jackson2JsonRedisSerializer(WxOrder.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| @@ -309,7 +298,6 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| Jackson2JsonRedisSerializer<WxAppinfo> j = new Jackson2JsonRedisSerializer(WxAppinfo.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| @@ -329,6 +317,9 @@ public class RedisConfig extends CachingConfigurerSupport { | |||
| RedisTemplate<String, List<WxLevelConfig>> template = new RedisTemplate<>(); | |||
| Jackson2JsonRedisSerializer<List> j = new Jackson2JsonRedisSerializer(List.class); | |||
| ObjectMapper om = new ObjectMapper(); | |||
| om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); | |||
| j.setObjectMapper(om); | |||
| // value值的序列化 | |||
| template.setValueSerializer(j); | |||