|
@@ -1,19 +1,17 @@
|
|
|
package com.ctrip.framework.apollo.common.controller;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
|
|
|
import org.springframework.boot.web.server.MimeMappings;
|
|
|
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.data.web.PageableHandlerMethodArgumentResolver;
|
|
|
-import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
|
|
|
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
|
|
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
@Configuration
|
|
|
public class WebMvcConfig implements WebMvcConfigurer, WebServerFactoryCustomizer<TomcatServletWebServerFactory> {
|
|
|
|
|
@@ -29,7 +27,6 @@ public class WebMvcConfig implements WebMvcConfigurer, WebServerFactoryCustomize
|
|
|
@Override
|
|
|
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
|
|
|
configurer.favorPathExtension(false);
|
|
|
- configurer.ignoreAcceptHeader(true).defaultContentType(MediaType.APPLICATION_JSON_UTF8);
|
|
|
}
|
|
|
|
|
|
@Override
|