The default Spring Data REST JSON Date format in Spring Boot is as follows:
2015-02-21T07:03:18.000+0000
To change the default Spring Data REST JSON Date format in Spring Boot,
add the following property in your application.properties:
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
Now you will get the following result:
2015-02-21 16:03:18
Reference:
http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/common-application-properties.html
No comments:
Post a Comment