59-ssm HashMap background data transfer to the front end (JSON data)

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! ! !

 

Guess you like

Origin www.cnblogs.com/zhumengdexiaobai/p/11135352.html