Cannot connect Javaplayfreamwork and Mysql (unresolved)

What you want to implement

I'm a beginner building a Java environment, but I'm stuck I'm having trouble connecting Mysql database and Playfreamwork. Continue to fight

environment MacOs catalina Java15 sbt 1.4.1 scala 2.13.3 mysql5.6.47

code##

build.sbt


name := """play-scala-seed"""
organization := "com.example"

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayScala)

scalaVersion := "2.13.3"

libraryDependencies += guice
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "5.0.0" % Test
libraryDependencies += jdbc
libraryDependencies += "mysql" % "mysql-connector-java" % "5.6.47"

application.conf


db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://localhost/play-scala-seed"
db.default.username=username
db.default.password="password"

cc24312cfd74592e63d368f1a742ef48.jpg

Recommended Posts

Cannot connect Javaplayfreamwork and Mysql (unresolved)
[Java] Connect to MySQL
I started MySQL 5.7 with docker-compose and tried to connect
When JConsole cannot connect locally
Connect to MySQL 8 with Java
[Android] Connect to MySQL (unfinished)