From 93d3a26304c1c939022ceffd1ec940c3724ec44d Mon Sep 17 00:00:00 2001 From: msksbr515 Date: Tue, 26 May 2026 13:03:48 +0800 Subject: [PATCH] fix(config): set sensible default values for JSON date format and timezone Change the default JSON date format from empty to `yyyy-MM-dd HH:mm:ss` and the default timezone from `GMT` to `GMT+8`, matching the values previously only configured in the dev profile. --- src/main/resources/application.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 2848e6a..1d34574 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -23,8 +23,8 @@ spring: jackson: default-property-inclusion: non_null # 序列化时忽略 null 字段 property-naming-strategy: SNAKE_CASE # 实体驼峰 → JSON snake_case - date-format: ${JSON_DATE_FORMAT:} # 日期格式,dev 配置中覆盖为 yyyy-MM-dd HH:mm:ss - time-zone: ${JSON_TIME_ZONE:GMT} # 时区,dev 配置中覆盖为 GMT+8 + date-format: ${JSON_DATE_FORMAT:yyyy-MM-dd HH:mm:ss} + time-zone: ${JSON_TIME_ZONE:GMT+8} # ---- MyBatis-Plus ---- mybatis-plus: