SpringMVC——controller中的数据中文乱码的解决办法

如果没有设置method ={RequestMethod.GET}和method ={RequestMethod.POST}将出现乱码。

这是可以写入produces = "application/json;charset=utf-8"语句,设置编码格式。

猜你喜欢

转载自blog.csdn.net/Searchin_R/article/details/83759433