|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package kr.xit.core.spring.config.support;
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|
|
|
|
import com.fasterxml.jackson.annotation.PropertyAccessor;
|
|
|
|
|
import com.fasterxml.jackson.databind.DeserializationFeature;
|
|
|
|
|
import com.fasterxml.jackson.databind.MapperFeature;
|
|
|
|
@ -56,8 +55,8 @@ public class CustomJacksonConfig {
|
|
|
|
|
ObjectMapper om = new ObjectMapper()
|
|
|
|
|
.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
|
|
|
|
|
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
|
|
|
|
|
.setSerializationInclusion(Include.NON_NULL)
|
|
|
|
|
.setSerializationInclusion(Include.NON_EMPTY)
|
|
|
|
|
//.setSerializationInclusion(Include.NON_NULL)
|
|
|
|
|
//.setSerializationInclusion(Include.NON_EMPTY)
|
|
|
|
|
.setVisibility(PropertyAccessor.FIELD, JsonAutoDetect.Visibility.ANY)
|
|
|
|
|
.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false)
|
|
|
|
|
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
|
|
|
|
|