Created
June 16, 2019 16:16
-
-
Save sirech/dd7348ec558d65a9a56688a7a52daece to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
class JacksonConfiguration { | |
@Bean | |
fun mappingJackson2HttpMessageConverter(): MappingJackson2HttpMessageConverter { | |
return MappingJackson2HttpMessageConverter().apply { | |
this.objectMapper = ObjectMapper().apply { | |
registerModule(KotlinModule()) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment