play.filters.cors.CORSFilter的maven依赖

时间:2017-03-23 22:27:32

标签: java playframework lagom

我正在尝试将CORS Filter添加到我的Lagom Framework REST API中。我根据文档添加了一个Filters类,但它无法找到CROSSFilter的包。需要MAVEN依赖flay框架CrossFilter

1 个答案:

答案 0 :(得分:0)

您需要过滤器帮助程序包

<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