Class CorsConfig

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

    @Configuration
    public class CorsConfig
    extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
    • Constructor Summary

      Constructors 
      Constructor Description
      CorsConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCorsMappings​(org.springframework.web.servlet.config.annotation.CorsRegistry registry)  
      • Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter

        addArgumentResolvers, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • Constructor Detail

      • CorsConfig

        public CorsConfig()
    • Method Detail

      • addCorsMappings

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