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)

Comment From: rstoyanchev

As of 6.1 with d04d7b2e57096b4c4acde3ba12e978a3867b0772 there is support for data binding for functional endpoints through ServerRequest. It doesn't seem to be reflected in the documentation yet, which we can correct, but there are some tests. Have you seen that?

Comment From: hannah23280

As of 6.1 with d04d7b2 there is support for data binding for functional endpoints through ServerRequest. It doesn't seem to be reflected in the documentation yet, which we can correct, but there are some tests. Have you seen that?

Thanks. will check that out! Hopefully can be reflected in documentation (with some sample code illustrating how to achieve the scenario I illustrate in my first post) soon