tag_syntax 改为auto_detect
<bean class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
<property name="freemarkerSettings">
<props>
<prop key="tag_syntax">auto_detect</prop>
<prop key="defaultEncoding">UTF-8</prop>
</props>
</property>
</bean>
defaultEncoding 改为urf-8 防止乱码
你可能需要 freemarker Velocity获取request,session