I am working on Play 2.7 project for the first time. As I added some db config stuff for mysql db, I get error at the start saying: "CreationException: Unable to create injector, see the following errors:"
and a lot of other lines
build.sbt :
name := """playreview"""
organization := "asis"
version := "1.0-SNAPSHOT"
lazy val playreview = (project in file("."))
.enablePlugins(PlayJava, PlayEbean)
scalaVersion := "2.13.0"
libraryDependencies ++= Seq(guice, evolutions, javaJdbc)
libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.41"
application.conf :
play.db {
config = "db"
default = "default"
}
db {
default.driver=com.mysql.jdbc.Driver
default.url="jdbc:mysql://localhost:3306/playreviewdb?useSSL=false"
default.username=root
default.password="*****"
}
# db connections = ((physical_core_count * 2) + effective_spindle_count)
fixedConnectionPool = 9
database.dispatcher {
executor = "thread-pool-executor"
throughput = 1
thread-pool-executor {
fixed-pool-size = ${fixedConnectionPool}
}
}
ebean.default = ["models.*"]