读书人

Spring集成FreeMarker中文出现乱码的解

发布时间: 2012-11-01 11:11:31 作者: rapoo

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>
还是要加的

读书人网 >软件架构设计

热点推荐