get cannot access EntityBean 报错 where remove javaEbean dependency

get cannot access EntityBean error where remove javaEbean dependency

我有一个与 Spring 和 Hibernate JPA 集成的 Play 应用程序。

当我从 build.sbt 文件中删除 javaEbean 依赖项时,我收到

cannot access EntityBean

这是我的依赖项:

scalaVersion := "2.11.1"

libraryDependencies ++= Seq(
jdbc,
javaJdbc,
javaCore,
filters,
//  javaEbean,
cache,
//  javaWs,
//  "org.hibernate" % "hibernate-core" % "4.3.8.Final",
javaJpa.exclude("org.hibernate.javax.persistence", "hibernate-jpa-2.0-   api"),
"org.hibernate" % "hibernate-entitymanager" % "4.3.0.Final",
"mysql" % "mysql-connector-java" % "5.1.21",
"org.springframework" % "spring-context" % "4.1.5.RELEASE",
"org.springframework" % "spring-orm" % "4.1.5.RELEASE",
"org.springframework" % "spring-core" % "4.1.5.RELEASE",
"org.springframework" % "spring-jdbc" % "4.1.5.RELEASE",
"org.springframework" % "spring-test" % "4.1.5.RELEASE"
)

我该如何解决这个问题?

您在更改 build.sbt 后忘记清理,因此不会加载新的依赖项。 在控制台中尝试 activator clean