コード例 #1
0
  @RequestMapping(value = "/save", method = RequestMethod.POST, headers = "Accept=application/json")
  public @ResponseBody void saveParameter(@RequestBody LocalityWithin within) {

    withRepo.saveLocallityWithin(within);
  }
コード例 #2
0
 @RequestMapping(value = "/getAll", method = RequestMethod.GET)
 public @ResponseBody List<LocalityWithin> getAll() {
   return withRepo.allLocalityWithin();
 }