Class MyConfiguration
- java.lang.Object
-
- org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
- org.apache.iotdb.web.grafana.conf.MyConfiguration
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration public class MyConfiguration extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterCreated by dell on 2017/7/18.
-
-
Constructor Summary
Constructors Constructor Description MyConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)org.springframework.web.servlet.config.annotation.WebMvcConfigurercorsConfigurer()return WebMvcConfigurer.LoginInterceptorloginInterceptor()-
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Method Detail
-
corsConfigurer
@Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()
return WebMvcConfigurer.
-
loginInterceptor
@Bean public LoginInterceptor loginInterceptor()
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
- Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Overrides:
addInterceptorsin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
-