diff options
Diffstat (limited to 'sw-server')
-rw-r--r-- | sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebMvcConfig.kt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebMvcConfig.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebMvcConfig.kt new file mode 100644 index 00000000..a30d9fa4 --- /dev/null +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebMvcConfig.kt @@ -0,0 +1,15 @@ +package org.luxons.sevenwonders.server.config + +import org.springframework.context.annotation.Configuration +import org.springframework.http.converter.HttpMessageConverter +import org.springframework.http.converter.json.KotlinSerializationJsonHttpMessageConverter +import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport + +@Configuration +class WebMvcConfig : WebMvcConfigurationSupport() { + + override fun configureMessageConverters(converters: MutableList<HttpMessageConverter<*>?>) { + converters.add(KotlinSerializationJsonHttpMessageConverter()) + addDefaultHttpMessageConverters(converters) + } +} |