Wednesday, October 19, 2011

Spring REST Controller example

@Controller
@RequestMapping("/urlpattern")
public class ClassName {

@RequestMapping(method=RequestMethod.GET, headers={"Accept=application/json"})
public @ResponseBody responseClass method(Model model){

}

No comments:

Post a Comment