com.lsdconsulting.generatorui.config.ObjectMapperConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lsd-distributed-generator-ui-service Show documentation
Show all versions of lsd-distributed-generator-ui-service Show documentation
This is the graphical interface providing the LSD generation functionality.
The newest version!
package com.lsdconsulting.generatorui.config
import com.fasterxml.jackson.databind.ObjectMapper
import com.lsdconsulting.generatorui.config.objectmapper.ObjectMapperCreator
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
@Configuration
class ObjectMapperConfig {
@Bean
fun objectMapper(): ObjectMapper = ObjectMapperCreator().create()
@Bean
fun converter(objectMapper: ObjectMapper): MappingJackson2HttpMessageConverter? {
val converter = MappingJackson2HttpMessageConverter()
converter.objectMapper = objectMapper
return converter
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy