Hi All,
I am facing one very known issue yet no solution is working for me. Any quick help will be grateful
From MVC controller, I am calling REST service which returns me Model object with LocalDate as one of the fields. JacksonJAXbJSONProvider does not parse the Localdate object. I wrote custom Mapper as below And dependency is added in pom.xml
This was suggested in
http://stackoverflow.com/questions/28802544/java-8-localdate-jackson-format/38051405#38051405
My spring.xml(contains configuration for MVC controller etc...) has already one mapper configured which does conversion automatically as below
Below is stub file which connects to REST Service
Now How do I configure my Context resolver which I just wrote so that I should be able to convert LocalDate.
Where should my custom class go, in message converter or jaxrs:providers> ?
I am getting below exception
No suitable constructor found for type [simple type, class java.time.LocalDate]: can not instantiate from JSON object (need to add/enable type information?)