I have the following class:
public static class ARestRequestParam
{
String name;
LocalDate date; // joda type
}
And I want it to b
Your code is OK, but if you use @EnableWebMvc
in a Spring Boot app you switch off the default settings in the framework, so maybe you should avoid that. Also, you now have only one HttpMessageConverter
in your MVC handler adapter. If you use a snapshot of Spring Boot you ought to be able to simply define a @Bean
of type Module
and everything else would be automatic, so I would recommend doing it that way.