我正在做一切非常标准的事情。尝试使用Play-Authenticate插件,但我对几个视图的引用无法解决。
导入是存在的,但它显示为灰色,表示未使用。这就是我的build.sbt的样子:
name := """WebApp"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean)
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
javaJdbc,
cache,
javaWs,
"com.feth" % "play-authenticate_2.11" % "0.7.1",
"org.postgresql" % "postgresql" % "9.4-1206-jdbc42",
"org.webjars" % "bootstrap" % "3.2.0",
"be.objectify" % "deadbolt-java_2.11" % "2.4.4"
)
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
fork in run := true
我尝试重新启动intellij,运行sbt clean,从现有源重新加载项目。
这很奇怪,因为当我进入alt +输入时,它知道要建议的导入,但即使它将其拉入,它仍然没有得到解决。例如:
return ok(unverified.render());
变为:
return ok(views.html.account.signup.unverified.render());
但仍未解决。