繁体   English   中英

运行激活程序运行时找不到Play框架未找到值routeGenerator

[英]Play framework not found value routesGenerator when running activator run

我正在尝试设置播放框架,但是在运行时

activator run

我收到此错误

/build.sbt:17: error: not found: value routesGenerator
routesGenerator := InjectedRoutesGenerator
^
[error] Type error in expression

我一直在寻找解决方案,但是运气框架2.3.9是否存在任何不兼容问题?

我的环境是Java 1.7.0_21的ubuntu 12.0.4

谢谢。

我知道您已经接受了正确的答案,但是以下是解决此问题的方法:您缺少此导入:import play.sbt.routes.RoutesKeys._

InjectedRoutesGenerator来自Play 2.4.x

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM