首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring集成FreeMarker中文出现乱码的解决方法(非contentType)

2012-11-01 
Spring集成FreeMarker中文出现乱码的解决办法(非contentType)项目中用到freemarker和spring集成后中文出现

Spring集成FreeMarker中文出现乱码的解决办法(非contentType)

项目中用到freemarker和spring集成后中文出现乱码

上网搜大部分是说在viewResolver中加入<property name="contentType" value="text/html;charset=gb2312"></property>

?

但我发现对于我的项目不起做用

?

又goole一下 剔除掉上面的搜索结果,发现还有一种解决方案

<bean id="freemarkerConfigurer"
??? ??? value="text/html;charset=gb2312"></property>
还是要加的

热点排行