Skip to content

Commit

Permalink
增加freemarker使用注释
Browse files Browse the repository at this point in the history
  • Loading branch information
yita committed May 17, 2015
1 parent 4552608 commit 66c7610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/quickstart/src/main/webapp/WEB-INF/spring-mvc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<property name="suffix" value=".jsp"/>
</bean>

<!-- 以下为freemarker的相关配置,如果使用freemarker请把注释去掉即可 -->
<!-- freemarker config -->
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
<property name="templateLoaderPath" value="/WEB-INF/views/"/>
Expand All @@ -55,8 +56,7 @@
<bean id="fmXmlEscape" class="freemarker.template.utility.XmlEscape"/>

<!--
View resolvers can also be configured with ResourceBundles or XML files. If you need
different view resolving based on Locale, you have to use the resource bundle resolver.
freemarker的order顺序一定早于jsp,否则不能正确查到
-->
<bean id="viewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">
<property name="cache" value="true"/>
Expand Down

0 comments on commit 66c7610

Please sign in to comment.