Esempio n. 1
0
  @RequestMapping(value = "/remove")
  @ResponseBody
  public String remove(@RequestParam Map<String, String> params) throws Exception {

    return new ObjectMapper().writeValueAsString(service.removeUser(params));
  }
Esempio n. 2
0
  @RequestMapping(value = "/save", produces = "text/plain; charset=UTF-8")
  @ResponseBody
  public String save(@RequestParam Map<String, String> params) throws Exception {

    return new ObjectMapper().writeValueAsString(service.saveUser(params));
  }