0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JavaplayfreamworkとMysql の接続ができない(未解決)

Posted at

実装したいこと##

Java環境構築中の初心者なのですが詰まり中
MysqlのデータベースとPlayfreamworkの接続がうまく出来ず困っているところ。
引き続き格闘

環境
MacOs catalina
Java15
sbt 1.4.1
scala 2.13.3
mysql5.6.47

コード##

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?