0
我使用play(scala)并尝试添加jquery。一是增加一条,作为一个依赖:播放:IllegalArgumentException:无法找到lib/jquery/jquery.js
"org.webjars" %% "webjars-play" % "2.4.0-1",
"org.webjars" % "bootstrap" % "3.3.7",
新增webjars路线:
GET /webjars/*file controllers.WebJarAssets.at(file)
并称为脚本:
<script src="@routes.WebJarAssets.at(WebJarAssets.locate("lib/jquery/jquery.js"))"></script>
当我运行它,我得到:
[IllegalArgumentException: lib/jquery/jquery.js could not be found. Make sure you've added the corresponding WebJar and please check for typos.]
我也在之后试过这个ing。
任何想法我错了吗? 这里顺便说一句的目标文件夹: