spring.jackson.date-format
时间: 2023-12-22 17:47:05 浏览: 201
Spring返回json数据格式
spring.jackson.date-format is a configuration property in Spring Boot that allows you to specify the date format to be used when serializing and deserializing date/time values in JSON. By default, Spring uses the ISO-8601 format for date/time values, but you can customize the format using this property.
For example, if you want to use the format "yyyy-MM-dd HH:mm:ss.SSS", you can add the following line to your application.properties file:
```
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss.SSS
```
This will tell Spring to use this format when serializing and deserializing date/time values.
阅读全文