Class JacksonConfig


  • @Configuration
    public class JacksonConfig
    extends Object
    Configure the various beans injected in Swagger's components relating to Jackson's JSON serialization.
    Author:
    poirigui
    • Constructor Detail

      • JacksonConfig

        public JacksonConfig()
    • Method Detail

      • objectMapper

        @Bean
        @Primary
        public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
        Mapper used to generate JSON payloads from the REST API.
        See Also:
        ObjectMapperResolver
      • swaggerObjectMapper

        @Bean
        public com.fasterxml.jackson.databind.ObjectMapper swaggerObjectMapper()
        This is the ObjectMapper used by Swagger to generate the /openapi.json endpoint. It is defined here so that it can be accessed from CustomModelResolver.