Configuration &引用;值上下文不是object play.mvc.Http的成员;现场应用
当我试图编译我的play应用程序时,我遇到以下错误。请任何人帮助我修复这个错误Configuration &引用;值上下文不是object play.mvc.Http的成员;现场应用,configuration,compilation,playframework-2.1,Configuration,Compilation,Playframework 2.1,当我试图编译我的play应用程序时,我遇到以下错误。请任何人帮助我修复这个错误 [info] Compiling 4 Scala sources and 3 Java sources to /home/decathlon/play/samples/java/myApp/target/scala-2.10/classes... [error] /home/decathlon/play/samples/java/myApp/app/views/index.scala.html:
[info] Compiling 4 Scala sources and 3 Java sources to /home/decathlon/play/samples/java/myApp/target/scala-2.10/classes...
[error] /home/decathlon/play/samples/java/myApp/app/views/index.scala.html:0: value Context is not a member of object play.mvc.Http
[error] /home/decathlon/play/samples/java/myApp/app/views/main.scala.html:0: value Context is not a member of object play.mvc.Http
[error] two errors found
[error] (compile:compile) Compilation failed
[error] Total time: 1 s, completed 11 May, 2014 9:24:02 PM
遵循主模板中的模板参数
@(内容:Html)
在索引模板中,应该有如下内容
@main() {
<div>..</div>
}
public static Result index() {
return ok(
index.render()
);
}