How can I register and use the jackson AfterburnerModule in Spring Boot?
问题 I am using SpringBoot 1.5.9., Jackson 2.8 and Spring Framework 4.3.13. I am trying to register and use the AfterburnerModel. According to the Spring Boot documentation, to configure the ObjectMapper you can either define the bean yourself and annotate it with @Bean and @Primary. In the bean you can register a module. Or you can add a bean of type Jackson2ObjectMapperBuilder where you can customize the ObjectMapper, by adding a module. I have tried both ways, and during serialization none of