Skip to content

Document Web DataBinder support for RouterFunction #35367

Description

@hannah23280

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions