Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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