将spring配置中的velocity view改为: <bean id="velocityConfig" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer"> <property name="resourceLoaderPath" value="/WEB-INF/vm/" /> <property name="velocityProperties"> <props> <prop key="input.encoding">utf-8</prop> <prop key="output.encoding">utf-8</prop> </props> </property> </bean> <bean id="velocityViewResolver" class="org.springframework.web.servlet.view.velocity.VelocityViewResolver"> <property name="cache" value="true" /> <property name="suffix" value=".html" /> <property name="contentType" value="text/html;charset=UTF-8" /> </bean> <bean id=”velocityConfig” class=”org.springframework.web.servlet.view.velocity.VelocityConfigurer”> <property name=”resourceLoaderPath” value=”/WEB-INF/vm/” /> <property name=”velocityProperties”> <props> <prop key=”input.encoding”>utf-8</prop> <prop key=”output.encoding”>utf-8</prop> </props> </property> </bean> read more
烫手的
- 生活,就是一个期待跟着一个期待 - 被踩了 6,370 脚
- 悼念该悼念的,记住该记住的,知道该知道的 - 被踩了 1,569 脚
- 解决android 2.2下无法更新gmail、voice search、google search、street view - 被踩了 1,230 脚
- 关于 - 被踩了 1,113 脚
- 死于青春 - 被踩了 1,057 脚
近期评论
- CSDN这回一石激起千层浪了 | 拈花微笑 发表在《请教新浪》
- 牛肉丝 发表在《Sina,I服了U》
- 牛肉丝 发表在《一路走好》
- CSDN这回一石激起千层浪了 | 拈花微笑 发表在《猜想:互联网ID,“死号”判定与回收》
- CSDN这回一石激起千层浪了 | 拈花微笑 发表在《Sina,I服了U》
