fastJsonHttpMessageConverters增加条件初始化,便于自定义覆盖

This commit is contained in:
mazhicheng 2020-05-30 14:39:58 +08:00
parent 9797e01c12
commit 2f1d06b8f6
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public class CoreAutoConfiguration{
}
@Bean
@ConditionalOnMissingBean(HttpMessageConverters.class)
public HttpMessageConverters fastJsonHttpMessageConverters() {
FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter();
converter.setDefaultCharset(Charset.forName(Cons.CHARSET_UTF8));