Class WebMvcConfiguration
java.lang.Object
com.huaweicloud.common.adapters.webmvc.WebMvcConfiguration
@Configuration
@ConditionalOnClass(name="org.springframework.web.servlet.config.annotation.WebMvcConfigurer")
public class WebMvcConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.servlet.FilterRegistrationBean<InvocationContextFilter>invocationContextFilter(ContextProperties contextProperties) org.springframework.boot.web.servlet.FilterRegistrationBean<ShutdownHookFilter>shutdownHookFilter(ContextProperties contextProperties, ClosedEventListener closedEventListener) org.springframework.web.servlet.config.annotation.WebMvcConfigurerwebMvcConfigurer(List<PreHandlerInterceptor> preHandlerInterceptors, List<PostHandlerInterceptor> postHandlerInterceptors, InvocationMetrics invocationMetrics)
-
Constructor Details
-
WebMvcConfiguration
public WebMvcConfiguration()
-
-
Method Details
-
webMvcConfigurer
@Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurer webMvcConfigurer(@Autowired(required=false) List<PreHandlerInterceptor> preHandlerInterceptors, @Autowired(required=false) List<PostHandlerInterceptor> postHandlerInterceptors, InvocationMetrics invocationMetrics) -
invocationContextFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<InvocationContextFilter> invocationContextFilter(ContextProperties contextProperties) -
shutdownHookFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<ShutdownHookFilter> shutdownHookFilter(ContextProperties contextProperties, ClosedEventListener closedEventListener)
-