My rest service is calling another Rest API using sprint rest template. Java class corresponding to Request body has one field is of type Date (java.util.date) as application source is 1.6 java. Now the corresponding request class of the receiver Rest API has the same field of type java.time.Instant.
Now when I call this rest endpoint, date is received at their side as completely different. I was searching for any annotation jackson provides, thinking that it will de-serialize this value in correct way. But I could not see any solution anywhere. Can anyone suggests what is the best way to fix this