Skip to content

Instantly share code, notes, and snippets.

@mak9456
Created September 23, 2018 18:34
Show Gist options
  • Save mak9456/39d1a8073f907cfb678b1acca064bf05 to your computer and use it in GitHub Desktop.
Save mak9456/39d1a8073f907cfb678b1acca064bf05 to your computer and use it in GitHub Desktop.
@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