SpringFrameworkとMySQLを用いてプログラミングを行っているのですが、最近になって以下のエラー文を吐き実行できない状態となりました。
application.propertiesのDBアクセスのURLには「?autoReconnect=true&useSSL=false」を追加したのですが、まだ実行できません。何か対処が足りないのでしょうか。
Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
追記です。
MySQL Connector/J Ver.5.1.42
application.properties
1spring.datasource.url: jdbc:mysql://localhost:3306/testapp?autoReconnect=true&useSSL=false 2spring.datasource.username: **** 3spring.datasource.password: **** 4spring.datasource.deriverClassName: com.mysql.jdbc.Driver 5 6security.basic.enabled:false 7 8security.user.name=user 9security.user.password=pass 10
MySQL は
MySQL 5.5.45+, 5.6.26+ and 5.7.6+
である必要があります
バージョンはmysql Ver 14.14 Distrib 5.7.18, for Win64 (x86_64)を利用しています。これではまずかったでしょうか。
データソースの設定はどうなっていますか?
申し訳ありません。データソースの設定に関してはよくわかっておりません。
だとすると useSSL='false' とかになってそうだけどなぁ
application.propertiesには右記のように記載しています。[spring.datasource.url: jdbc:mysql://localhost:3306/testapp?autoReconnect=true&useSSL=false]
MySQL Connector/J のバージョンを明記してもらえますか 質問を編集で あと application.properties も質問側に問題ない範囲でマスキング加工等を行って
回答1件
あなたの回答
tips
プレビュー