Jackson ContextResolver is loaded but getContext method is not invoked in wildfly 18

358 Views Asked by At

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.

0

There are 0 best solutions below