When you use Spring Boot, you can add the following line to the application.properties file:
spring.jackson.serialization.write-dates-as-timestamps=false
Spring Boot enables the configuration of the default ObjectMapper with properties under the spring.jackson prefix. Read the jackson section in the Spring Boot docs for more info on this.
more details :
https://www.baeldung.com/spring-boot-customize-jackson-objectmapper
Aucun commentaire:
Enregistrer un commentaire
to criticize, to improve