LoginSignup
0
1

More than 1 year has passed since last update.

備忘録:springbootにおけるMySQL接続について

Posted at

springでMySQL接続に苦労したので忘れないように

spring.datasource.url=jdbc:mysql://localhost:3306/App?serverTimezone=Asia/Tokyo
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=create

タイムゾーンを設定しないとエラー
その際、略三文字で指定すると怒られる➡エラー

driver classはmysqlのあとにcjを入れないと赤文字で警告?のようなものが出る。
意味は知らない
これから調べます。

0
1
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
1