当前位置: 代码迷 >> Web前端 >> 运用sitemesh包含velocity生成的静态页面乱码解决
  详细解决方案

运用sitemesh包含velocity生成的静态页面乱码解决

热度:101   发布时间:2012-10-24 14:15:58.0
使用sitemesh包含velocity生成的静态页面乱码解决

在applicationContext.xml中的视图解析器中,配置如下

<bean id="viewResolver"
		class="org.springframework.web.servlet.view.InternalResourceViewResolver" >
		<property name="contentType"><value>text/html;charset=UTF-8</value></property>
</bean>