我正在尝试将CORS过滤器添加到我的Lagom Framework REST API中。根据文档,我添加了一个过滤器类,但是它找不到 CROSSFilter 的包。需要 MAVEN 依赖 flay 框架 交叉过滤器
你需要过滤器帮助程序包
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>filters-helpers_2.11</artifactId>
<version>2.5.13</version>
</dependency>
不同版本:
https://mvnrepository.com/artifact/com.typesafe.play/filters-helpers_2.11https://mvnrepository.com/artifact/com.typesafe.play/filters-helpers_2.10
接口文档:
https://www.javadoc.io/doc/com.typesafe.play/filters-helpers_2.11/2.5.13