質問編集履歴
1
MySQL Connector/Jのバージョン、application\.propertiesの内容
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,3 +9,31 @@
|
|
9
9
|
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.
|
10
10
|
|
11
11
|
```
|
12
|
+
|
13
|
+
追記です。
|
14
|
+
|
15
|
+
MySQL Connector/J Ver.5.1.42
|
16
|
+
|
17
|
+
```application.properties
|
18
|
+
|
19
|
+
spring.datasource.url: jdbc:mysql://localhost:3306/testapp?autoReconnect=true&useSSL=false
|
20
|
+
|
21
|
+
spring.datasource.username: ****
|
22
|
+
|
23
|
+
spring.datasource.password: ****
|
24
|
+
|
25
|
+
spring.datasource.deriverClassName: com.mysql.jdbc.Driver
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
security.basic.enabled:false
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
security.user.name=user
|
34
|
+
|
35
|
+
security.user.password=pass
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
```
|