refactor: 项目SQL和部署脚本目录调整,添加 jackson 序列化默认时区和格式

This commit is contained in:
hxr
2023-09-02 23:55:28 +08:00
parent b6fefb5c17
commit 09bfa1876d
6 changed files with 11 additions and 1 deletions

View File

@@ -56,7 +56,7 @@
### 1. 数据库创建
执行 [youlai_boot.sql](sql/youlai_boot.sql) 脚本完成数据库创建、表结构和基础数据的初始化。
执行 [mysql.sql](db/mysql.sql) 脚本完成数据库创建、表结构和基础数据的初始化。
### 2. 配置修改

View File

@@ -2,6 +2,11 @@ server:
port: 8989
spring:
jackson:
## 默认序列化时间格式
date-format: yyyy-MM-dd HH:mm:ss
## 默认序列化时区
time-zone: GMT+8
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@@ -2,6 +2,11 @@ server:
port: 8989
spring:
jackson:
## 默认序列化时间格式
date-format: yyyy-MM-dd HH:mm:ss
## 默认序列化时区
time-zone: GMT+8
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver