File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 154
154
<dependency >
155
155
<groupId >mysql</groupId >
156
156
<artifactId >mysql-connector-java</artifactId >
157
+ <version >8.0.14</version >
157
158
</dependency >
158
159
159
160
<dependency >
175
176
<dependency >
176
177
<groupId >com.alibaba</groupId >
177
178
<artifactId >druid</artifactId >
178
- <version >1.0.11 </version >
179
+ <version >1.1.12 </version >
179
180
</dependency >
180
181
181
182
<dependency >
Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ spring:
49
49
# 使用druid数据源
50
50
datasource :
51
51
type : com.alibaba.druid.pool.DruidDataSource
52
- driver-class-name : com.mysql.jdbc.Driver
52
+ driver-class-name : com.mysql.cj.jdbc.Driver
53
+ dbcp2 :
54
+ test-while-idle : false
55
+ validation-query : SELECT 'x'
53
56
# json配置
54
57
jackson :
55
58
time-zone : Asia/Chongqing
@@ -183,7 +186,7 @@ spring:
183
186
name : geekcattle
184
187
username : root
185
188
password : root
186
- url : jdbc:mysql://localhost:3306/geekcattle?useUnicode=true&characterEncoding=UTF-8
189
+ url : jdbc:mysql://localhost:3306/geekcattle?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
187
190
redis :
188
191
database : 0
189
192
host : 127.0.0.1
@@ -203,7 +206,7 @@ spring:
203
206
name : geekcattle
204
207
username : geekcattle
205
208
password : GeekCattle
206
- url : jdbc:mysql://localhost:3306/geekcattle?useUnicode=true&characterEncoding=UTF-8
209
+ url : jdbc:mysql://localhost:3306/geekcattle?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
207
210
redis :
208
211
database : 0
209
212
host : 127.0.0.1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments