示例#1
0
  @RequestMapping(value = "/remove")
  @ResponseBody
  public String remove(@RequestParam Map<String, String> params) throws Exception {

    return new ObjectMapper().writeValueAsString(service.removeUser(params));
  }
示例#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));
  }