|
|
@@ -6,9 +6,9 @@ server:
|
|
|
spring:
|
|
|
application:
|
|
|
name: oms-backend
|
|
|
-
|
|
|
+
|
|
|
datasource:
|
|
|
- url: jdbc:mysql://localhost:3306/oms?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
|
|
|
+ url: jdbc:mysql://localhost:3306/oms?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
|
|
username: root
|
|
|
password: root
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
@@ -39,6 +39,12 @@ spring:
|
|
|
redis:
|
|
|
time-to-live: 3600000
|
|
|
|
|
|
+ jackson:
|
|
|
+ date-format: yyyy-MM-dd'T'HH:mm:ss
|
|
|
+ time-zone: Asia/Shanghai
|
|
|
+ serialization:
|
|
|
+ write-dates-as-timestamps: false
|
|
|
+
|
|
|
mybatis-plus:
|
|
|
mapper-locations: classpath*:/mapper/**/*.xml
|
|
|
type-aliases-package: com.oms.entity
|