Esempio n. 1
0
 @RequestMapping(value = "/{id}", method = RequestMethod.GET, produces = "application/json")
 public @ResponseBody Member lookupMemberById(@PathVariable("id") Long id) {
   return memberDao.findById(id);
 }
Esempio n. 2
0
 @RequestMapping(method = RequestMethod.GET, produces = "application/json")
 public @ResponseBody List<Member> listAllMembers() {
   return memberDao.findAllOrderedByName();
 }