teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

MySQL Connector/Jのバージョン、application\.propertiesの内容

2017/08/06 13:53

投稿

misaka
misaka

スコア31

title CHANGED
File without changes
body CHANGED
@@ -3,4 +3,18 @@
3
3
 
4
4
  ```
5
5
  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.
6
+ ```
7
+ 追記です。
8
+ MySQL Connector/J Ver.5.1.42
9
+ ```application.properties
10
+ spring.datasource.url: jdbc:mysql://localhost:3306/testapp?autoReconnect=true&useSSL=false
11
+ spring.datasource.username: ****
12
+ spring.datasource.password: ****
13
+ spring.datasource.deriverClassName: com.mysql.jdbc.Driver
14
+
15
+ security.basic.enabled:false
16
+
17
+ security.user.name=user
18
+ security.user.password=pass
19
+
6
20
  ```