fastJsonHttpMessageConverters增加条件初始化,便于自定义覆盖
This commit is contained in:
parent
9797e01c12
commit
2f1d06b8f6
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue