在springmvc.xml中加入下面配置得以解决。

<mvc:annotation-driven>
<mvc:message-converters>
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<constructor-arg ref="utf8Charset"></constructor-arg>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<bean id="utf8Charset" class="java.nio.charset.Charset" factory-method="forName">
<constructor-arg value="UTF-8"/>
</bean>

最新文章

  1. C++11之std::function和std::bind
  2. js通过日期计算属于星期几
  3. WSGI
  4. SQL Server In-Memory OLTP 无损PPT分享
  5. jQuery插件之jquery editable plugin--点击编辑文字插件
  6. Investment_完全背包
  7. C++:构造函数默认的参数声明
  8. angular select中ng-options使用
  9. Oracle数据库名、实例名、数据库域名、全局数据库名、服务名之间的区别
  10. JSP中取COOKIE中指定值得方法【转载】
  11. 大型分布式C++框架《三:序列化与反序列化》
  12. 关于Opencv2.4.x中stitcher类的简单应用
  13. 超赞的OOM检测(除了mat以外)
  14. Duplicate entry &#39;0&#39; for key &#39;PRIMARY&#39;的一种可能的解决办法
  15. windows 10隐藏各种文件夹
  16. PHP选择排序
  17. nodeJs 控制台打印中文显示为Unicode解决方案
  18. bootstrap-table 分页
  19. MVC5+EF6入门教程——实现动态创建数据库与登录验证
  20. js中怎么为同级元素添加点击事件

热门文章

  1. 《VC++ 深入详解》 第3版 这是盗版书么~。。。
  2. ubuntu1804 snort base
  3. lua 1.0 源码分析 -- 1 lua 的虚拟指令
  4. 面试一个百度T7程序员,一道简单的题没答上来!网友却都在吐槽面试官!
  5. C语言/C++编程学习:送给考计算机二级的同学:公共基础知识总结!
  6. lumen-ioc容器测试 (2)
  7. selenium 提取天猫网页数据
  8. RocketMQ主从搭建
  9. 攻防世界-web2
  10. 010_Java基础语法