我使用Play 2.2.0,这是我的代码
libraryDependencies ++= Seq(
cache,
jdbc,
anorm,
"net.fwbrasil" %% "activate-play" % "1.6" exclude("org.scala-stm", "scala-stm_2.10.0"),
"net.fwbrasil" %% "activate-jdbc-async" % "1.6" exclude("org.scala-stm", "scala-stm_2.10.0"),
"net.fwbrasil" %% "activate-mongo-async" % "1.6" exclude("org.scala-stm", "scala-stm_2.10.0"),
"com.h2database" % "h2" % "1.4.180",
"org.scalatest" % "scalatest_2.10" % "2.0" % "test"
)
但是当我输入Cache
时,我没有选择play.api.cache.Cache
。即使我import play.api.cache._
它也无法识别缓存。与import play.api.cache.Cache
答案 0 :(得分:1)
我假设你在谈论IDE自动完成。每当您更改libs / dependencies时,都必须更新ide项目。
对于Eclipse:
play eclipse
的更多信息