Skip to content

Instantly share code, notes, and snippets.

Created June 21, 2018 10:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save b1a9id/f8fced9c18a7df7586e81adee85c4e5c to your computer and use it in GitHub Desktop.
public class SampleController {
public void initBinder(WebDataBinder binder) {
binder.addCustomFormatter(new TestFormatter());
public Map<String, String> get(Model model, @PathVariable("id") Integer id) {
public SampleGetRequest list(@ModelAttribute("SampleGet") SampleGetRequest request) {
return request;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment