没有配置json的全局时间格式
server: port: 9090 spring: profiles: # 环境设置 active: dev datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/2023Java?serverTimezone=Asia/Shanghai username: root password: study
配置json的全局时间格式后
server: port: 9090 spring: profiles: # 环境设置 active: dev datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/2023Java?serverTimezone=Asia/Shanghai username: root password: study # 响应 json 的全局时间格式 jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8
标签:cj,jdbc,json,mysql,格式,全局 From: https://www.cnblogs.com/konglxblog/p/17107187.html