|
@@ -33,12 +33,12 @@ import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.InitializingBean;
|
|
import org.springframework.beans.factory.InitializingBean;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.boot.actuate.endpoint.ApiVersion;
|
|
import org.springframework.boot.actuate.endpoint.ApiVersion;
|
|
|
|
+import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
import org.springframework.boot.web.server.ConfigurableWebServerFactory;
|
|
import org.springframework.boot.web.server.ConfigurableWebServerFactory;
|
|
import org.springframework.boot.web.server.ErrorPage;
|
|
import org.springframework.boot.web.server.ErrorPage;
|
|
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
|
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Bean;
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
|
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
@@ -62,7 +62,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
|
|
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
|
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
|
|
|
|
|
|
|
|
|
-@Configuration
|
|
|
|
|
|
+@AutoConfiguration
|
|
public class MvcAutoConfiguration implements InitializingBean , WebMvcConfigurer {
|
|
public class MvcAutoConfiguration implements InitializingBean , WebMvcConfigurer {
|
|
private static final Logger _logger = LoggerFactory.getLogger(MvcAutoConfiguration.class);
|
|
private static final Logger _logger = LoggerFactory.getLogger(MvcAutoConfiguration.class);
|
|
|
|
|