I have entity and entityDto, entity containing a field of type Date when persisting it to dataBase I use @CreationTimestamp and @Temporal(TemporalType.TIMESTAMP) annotations, dto contains the same field of type Date the project was working well and returning date in the format: 2019-11-27T14:24:00.000+0000, but now without any changing from my side, it returns 1643711600000 timestamp format!! Did anyone face such a problem? what could cause this issue?
Asked
Active
Viewed 197 times
0
-
Follow up I used spring.mvc.converters.preferred-json-mapper=gson instead of spring.http.converters.preferred-json-mapper=gson and it worked as expected. Until now I did not find the root cause or why it was doing like that, will read more about the new changes and back to you. Thanks – Muathe Jamil Sep 21 '22 at 09:18