Generally, direct transfer HashMap format it.
@RequestMapping(value = {"addsavePaper2"}) @ResponseBody public HashMap<String, String> addsave2(@RequestBody String paper, Model model) { HashMap<String, String> map = new HashMap<String, String>(); map.put("code", "0"); map.put("info", "2"); return map; }
However, if the value of the map is the Chinese may not be able to pass past! ! !