Package ubic.gemma.rest.util
Class JacksonConfig
- java.lang.Object
-
- ubic.gemma.rest.util.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 Summary
Constructors Constructor Description JacksonConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.ObjectMapper
objectMapper()
Mapper used to generate JSON payloads from the REST API.com.fasterxml.jackson.databind.ObjectMapper
swaggerObjectMapper()
This is the ObjectMapper used by Swagger to generate the /openapi.json endpoint.
-
-
-
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 fromCustomModelResolver
.
-
-