Class CorsWebMvcConfigurer

java.lang.Object
icu.easyj.web.cors.CorsWebMvcConfigurer
All Implemented Interfaces:
WebMvcConfigurerAdapter, org.springframework.web.servlet.config.annotation.WebMvcConfigurer

public class CorsWebMvcConfigurer extends Object implements WebMvcConfigurerAdapter
跨域请求过滤器
Since:
0.6.5
Author:
wangliang181230
  • Constructor Details

    • CorsWebMvcConfigurer

      public CorsWebMvcConfigurer(CorsProperties properties)
  • Method Details

    • addCorsMappings

      public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
      允许跨域请求
      Specified by:
      addCorsMappings in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      Specified by:
      addCorsMappings in interface WebMvcConfigurerAdapter
      Parameters:
      registry - 跨域注册器