提交 09bfa187 编写于 作者: H hxr

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

上级 b6fefb5c
......@@ -56,7 +56,7 @@
### 1. 数据库创建
执行 [youlai_boot.sql](sql/youlai_boot.sql) 脚本完成数据库创建、表结构和基础数据的初始化。
执行 [mysql.sql](db/mysql.sql) 脚本完成数据库创建、表结构和基础数据的初始化。
### 2. 配置修改
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册