类的使用
org.springframework.web.servlet.config.annotation.CorsRegistry
使用CorsRegistry的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中CorsRegistry的使用
参数类型为CorsRegistry的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected void
DelegatingWebMvcConfiguration. addCorsMappings(CorsRegistry registry)
protected void
WebMvcConfigurationSupport. addCorsMappings(CorsRegistry registry)
Override this method to configure cross origin requests processing.default void
WebMvcConfigurer. addCorsMappings(CorsRegistry registry)
Configure cross origin requests processing.void
WebMvcConfigurerAdapter. addCorsMappings(CorsRegistry registry)
已过时。Configure cross origin requests processing.