I\'d like to use LocalDate as type in a Servlet created with spring-mvc.
The users should be able to provide the date in multiple vali
I still don't know why PropertyEditor does not work.
But the following solutions worked.
@Configuration
public class LocalDateConfig extends WebMvcConfigurerAdapter {
@Override
public void addFormatters(FormatterRegistry registry) {
super.addFormatters(registry);
registry.addFormatterForFieldType(LocalDate.class, new Formatter() {
//override parse() and print()
});
}
}