标签:ftl val eem 解决 marker color property blog view
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> <property name="templateLoaderPath" value="/WEB-INF/freemarker"/> </bean> <bean id="viewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"> <!-- 解决freemarker中文乱码 --> <property name="contentType" value="text/html;charset=UTF-8"/> <property name="cache" value="true"/> <property name="prefix" value=""/> <property name="suffix" value=".ftl"/> <property name="order" value="0"/> </bean>
加上这个设置编码格式就好了,最好在页面也加设置下utf-8
标签:ftl val eem 解决 marker color property blog view
原文地址:http://www.cnblogs.com/xiaohuihui96/p/6160843.html