
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


回答1件
あなたの回答
tips
プレビュー