At the moment I am doing this in each controller i need it :
@InitBinder
protected void initBinder(WebDataBinder binder){
binder.registerCustomEditor(
Country.class, new CountryPropertyEditor(this.countryService));
}
Which works fine converting my string variable to country, however is there a way I can register this with all controllers ?
Can you just put it in the superclass of your controllers?