Created
September 23, 2018 18:34
-
-
Save mak9456/39d1a8073f907cfb678b1acca064bf05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@InitBinder | |
public void initBinder(WebDataBinder dataBinder) { | |
StringTrimmerEditor stringTrimmerEditor = new StringTrimmerEditor(true); | |
dataBinder.registerCustomEditor(String.class, stringTrimmerEditor); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment