Просмотр исходного кода

Merge branch 'release_real_200809' of https://git.malls.iformall.com/server/formallProject into release_real_200809

release_toaliyun_real
xhxu 5 лет назад
Родитель
Сommit
13d1c0717b
1 измененных файлов: 3 добавлений и 12 удалений
  1. +3
    -12
      mallinkCApi/src/main/java/com/iformall/config/RedisConfig.java

+ 3
- 12
mallinkCApi/src/main/java/com/iformall/config/RedisConfig.java Просмотреть файл

@@ -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);


Загрузка…
Отмена
Сохранить