ITeye博客

spring mvc 返回String 中文是乱码的问题

依山傍水 · 2013-10-29 09:15 · spring · 编程语言 · Markdown

解决办法:

加上produces

@RequestMapping(value="/user}",method=RequestMethod.GET,produces="application/json; charset=utf-8")

@RequestMapping(value="/user",method=RequestMethod.GET,produces="application/json; charset=utf-8")
	public @ResponseBody String treeFirst(@PathVariable String groupType){

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。