diff --git a/fine-redisson/src/com/fr/third/redisson/ConfigSupport.java b/fine-redisson/src/com/fr/third/redisson/ConfigSupport.java index 66814b2cb..bf875ec69 100644 --- a/fine-redisson/src/com/fr/third/redisson/ConfigSupport.java +++ b/fine-redisson/src/com/fr/third/redisson/ConfigSupport.java @@ -127,14 +127,14 @@ public class ConfigSupport { private ObjectMapper createMapper(JsonFactory mapping) { ObjectMapper mapper = new ObjectMapper(mapping); -// mapper.addMixIn(MasterSlaveServersConfig.class, MasterSlaveServersConfigMixIn.class); -// mapper.addMixIn(SingleServerConfig.class, SingleSeverConfigMixIn.class); -// mapper.addMixIn(Config.class, ConfigMixIn.class); -// mapper.addMixIn(Codec.class, ClassMixIn.class); -// mapper.addMixIn(LoadBalancer.class, ClassMixIn.class); -// FilterProvider filterProvider = new SimpleFilterProvider() -// .addFilter("classFilter", SimpleBeanPropertyFilter.filterOutAllExcept()); -// mapper.setFilterProvider(filterProvider); + mapper.addMixIn(MasterSlaveServersConfig.class, MasterSlaveServersConfigMixIn.class); + mapper.addMixIn(SingleServerConfig.class, SingleSeverConfigMixIn.class); + mapper.addMixIn(Config.class, ConfigMixIn.class); + mapper.addMixIn(Codec.class, ClassMixIn.class); + mapper.addMixIn(LoadBalancer.class, ClassMixIn.class); + FilterProvider filterProvider = new SimpleFilterProvider() + .addFilter("classFilter", SimpleBeanPropertyFilter.filterOutAllExcept()); + mapper.setFilterProvider(filterProvider); mapper.setSerializationInclusion(Include.NON_NULL); return mapper; } diff --git a/fine-redisson/src/com/fr/third/redisson/codec/JsonJacksonCodec.java b/fine-redisson/src/com/fr/third/redisson/codec/JsonJacksonCodec.java index 22fabf5df..bda7ea043 100755 --- a/fine-redisson/src/com/fr/third/redisson/codec/JsonJacksonCodec.java +++ b/fine-redisson/src/com/fr/third/redisson/codec/JsonJacksonCodec.java @@ -117,7 +117,7 @@ public class JsonJacksonCodec implements Codec { objectMapper.configure(SerializationFeature.WRITE_BIGDECIMAL_AS_PLAIN, true); objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); objectMapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true); -// objectMapper.addMixIn(Throwable.class, ThrowableMixIn.class); + objectMapper.addMixIn(Throwable.class, ThrowableMixIn.class); } @Override