Reputation: 357
All java.util.Date objects are converted like "2020-09-23T09:53:06.93Z[UTC]" but i don't want to include timezone in the serialized date like "2020-09-23T09:53:06.93". So i decided to use Jackson ContextResolver. I have used @Provider annotation and set objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-ddTHH:mm:ss.SSS")). My ContextResolver is loaded but getContextMethod is not invoked.
Can you confirm whether i'm doing right approach? Also assist me to resole this.
Upvotes: 1
Views: 433