springboot-跨域拦截器
CorsConfig.java import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
/**
* @author Genius
* @version 1.0.0
* @ClassName CorsConfig.java
* @Description TODO 跨域配置类
* @creat
共有 0 条评论