【发布时间】:2016-04-22 09:25:09
【问题描述】:
我不确定为什么我的公共资产没有被游戏发现。我正在使用与 play2 intelliJ 项目中的激活器模板相同的代码。
路线
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
和html
<img src="@routes.Assets.at(s"images/foo.png")" width="64px">
似乎是正确的,并且 foo.png 位于 public/images 文件夹中。检查员在 html 中用“找不到”消息突出显示 images/foo.png。它们似乎正在被编译,因为它们也正确地放置在目标目录中。应用程序和 html 的其余部分工作正常
对此有什么可能的解释?
【问题讨论】:
标签: intellij-idea playframework sbt typesafe-activator