我正在尝试在 Intellij IDEA 14.1.3 中将 WebJars 与 Play Framework 2.4.0 一起使用。
我有 SBT 1.7.0 插件和 Scala 1.5.2 插件(带有项目 Scala 版本 2.11.6)。
当我从终端($ activator run或$ sbt run)运行我的应用程序时,我的应用程序运行良好,但是在我的模板(参见下文)上的 #at() 方法上,我的模板上有编译错误并且没有自动完成功能@routes.WebJarAssets.at(..) (而不是在@routes.Assets.at):
有我的路由配置文件:
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
# WebJars integration into Play Framework : http://www.webjars.org/documentation
GET /webjars/*file controllers.WebJarAssets.at(file)
有关信息,我尝试在删除我的 .idea 文件夹后从 SBT 内置构建器重新导入项目,但这没有用。
有什么解决办法吗?