In the Spring Boot 1.2.3, we can customize the Jackson ObjectMapper via properties file. But I didn\'t find a attribute can set Jackson ignore null value when serialization
Add the following line to your application.properties file.
application.properties
spring.jackson.default-property-inclusion=non_null
For versions of Jackson prior to 2.7:
spring.jackson.serialization-inclusion=non_null