|
@@ -8,6 +8,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
+import org.springframework.context.annotation.Primary;
|
|
|
+import org.springframework.core.annotation.Order;
|
|
|
import org.springframework.format.FormatterRegistry;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
@@ -43,6 +45,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|
|
registry.addInterceptor(operationLogInterceptor).addPathPatterns("/**").excludePathPatterns("/login");
|
|
|
}
|
|
|
|
|
|
+ @Order(0)
|
|
|
+ @Primary
|
|
|
@Bean
|
|
|
public HttpMessageConverters fastJsonHttpMessageConverters() {
|
|
|
LocalFastJsonHttpMessageConverter converter = new LocalFastJsonHttpMessageConverter();
|