Class MyConfiguration

  • All Implemented Interfaces:
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @Configuration
    public class MyConfiguration
    extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
    Created 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
      void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)  
      org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()
      return WebMvcConfigurer.
      LoginInterceptor loginInterceptor()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyConfiguration

        public MyConfiguration()
    • Method Detail

      • corsConfigurer

        @Bean
        public org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()
        return WebMvcConfigurer.
      • addInterceptors

        public void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
        Specified by:
        addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        Overrides:
        addInterceptors in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter