As of current writing, to initialize the web databinder for controller class is straightforward as shown below:
@InitBinder
public void initBinder(WebDataBinder dataBinder) {
StringTrimmerEditor stringTrimmerEditor = new StringTrimmerEditor(true);
dataBinder.registerCustomEditor(String.class, stringTrimmerEditor);
}
However, there seem no equivalent straightforward way to achieve same goal for RouterFunction
Would like to suggest introducing new api, which allow RouterFunction to easily achieve something similar to above (i.e registering custom editor)
As of current writing, to initialize the web databinder for controller class is straightforward as shown below:
However, there seem no equivalent straightforward way to achieve same goal for RouterFunction
Would like to suggest introducing new api, which allow RouterFunction to easily achieve something similar to above (i.e registering custom editor)