Commit cfde0589 authored by dwxh's avatar dwxh 🕸
Browse files

修改数据库时区

parent 4bab281e
......@@ -5,7 +5,7 @@ server:
spring:
datasource:
url: jdbc:mysql://localhost:3306/APS?serverTimezone=UTC&allowMultiQueries=true
url: jdbc:mysql://localhost:3306/APS?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&allowMultiQueries=true
username: root
driver-class-name: com.mysql.cj.jdbc.Driver
initialization-mode: always
......
......@@ -5,7 +5,7 @@ server:
spring:
datasource:
url: jdbc:mysql://localhost:3306/APS?serverTimezone=UTC&allowMultiQueries=true
url: jdbc:mysql://localhost:3306/APS?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&allowMultiQueries=true
username: root
driver-class-name: com.mysql.cj.jdbc.Driver
initialization-mode: always
......
......@@ -5,7 +5,7 @@ server:
spring:
datasource:
url: jdbc:mysql://localhost:3306/APS?serverTimezone=UTC&allowMultiQueries=true
url: jdbc:mysql://localhost:3306/APS?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&allowMultiQueries=true
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment