com.github.zhujk.resp.config.RespWebConfig.kt Maven / Gradle / Ivy
package com.github.zhujk.resp.config
import org.springframework.context.annotation.Configuration
import org.springframework.http.converter.HttpMessageConverter
import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
class RespWebConfig : WebMvcConfigurer {
override fun extendMessageConverters(converters: MutableList>) {
converters.sortBy { if (it is AbstractJackson2HttpMessageConverter) -1 else 0 }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy