cors-filter使用,cors-filter解决跨域访问,cors-filter跨域请求
================================
©Copyright 蕃薯耀 2020-11-25
https://www.cnblogs.com/fanshuyao/
cors-filter为第三方组件。
一、官网地址
http://software.dzhuvinov.com/cors-filter.html
二、Springboot使用cors-filter
1、引入依赖
<dependency> <groupId>com.thetransactioncompany</groupId> <artifactId>cors-filter</artifactId> <version>2.9</version> </dependency>
2、配置类
import javax.servlet.Filter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot