It works. I created a project in the console play and work. Previously, I created a project in typesafe activator "[basics] Hello Play Framework (Java Only)" and did not work
No sees play.db.ebean.*;
-
21-06-2023 - |
Pergunta
I am a beginner in playframework, and I have a problem with import play.db.ebean.*; because no sees it.
- db.default.driver=org.h2.Driver
- db.default.url="jdbc:h2:mem:play"
- ebean.default="models.*"
I have uncommented lines in file application.conf, but still not working. This is my build.sbt
import play.Project._
name := """play2bars-java"""
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
javaJdbc,
javaEbean,
"org.webjars" %% "webjars-play" % "2.2.0",
"org.webjars" % "bootstrap" % "2.3.1")
playJavaSettings
Solução 2
Outras dicas
Does your build.sbt
file contain the javaEbean dependancy?
libraryDependencies ++= Seq(
javaJdbc,
javaEbean,
"org.webjars" %% "webjars-play" % "2.2.0",
"org.webjars" % "bootstrap" % "2.3.1")
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow