我正在尝试将CORS过滤器添加到Lagom Framework REST API。根据文档,我添加了一个Filters类,但是找不到CROSSFilter的程序包。需要MAVEN依赖Flay框架CrossFilter

最佳答案

您需要过滤器助手包

<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.11
https://mvnrepository.com/artifact/com.typesafe.play/filters-helpers_2.10

API文件:

https://www.javadoc.io/doc/com.typesafe.play/filters-helpers_2.11/2.5.13

10-05 23:04
查看更多