mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
This commit is contained in:
parent
6423535f67
commit
a431ae04e6
@ -189,7 +189,7 @@ public class JerseyAutoConfiguration implements ServletContextAware {
|
|||||||
static class JacksonResourceConfigCustomizer {
|
static class JacksonResourceConfigCustomizer {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
ResourceConfigCustomizer resourceConfigCustomizer(final ObjectMapper objectMapper) {
|
ResourceConfigCustomizer jacksonResourceConfigCustomizer(ObjectMapper objectMapper) {
|
||||||
return (ResourceConfig config) -> {
|
return (ResourceConfig config) -> {
|
||||||
config.register(JacksonFeature.class);
|
config.register(JacksonFeature.class);
|
||||||
config.register(new ObjectMapperContextResolver(objectMapper), ContextResolver.class);
|
config.register(new ObjectMapperContextResolver(objectMapper), ContextResolver.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user