-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Open
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation taskA documentation task
Milestone
Description
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)
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation taskA documentation task