thymeleaf视图移出到单独web模块

This commit is contained in:
shuzheng 2017-03-23 17:19:44 +08:00
parent 0b3289a3cd
commit fe7c759b39
1 changed files with 0 additions and 16 deletions

View File

@ -46,22 +46,6 @@
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
</bean>
<!-- 使用thymeleaf视图 -->
<bean id="templateResolver" class="org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver">
<property name="order" value="0"/>
<property name="prefix" value="/WEB-INF/thymeleaf"/>
<property name="suffix" value=".html"/>
<property name="templateMode" value="HTML"/>
<property name="cacheable" value="false"/>
</bean>
<bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine">
<property name="templateResolver" ref="templateResolver"/>
<property name="enableSpringELCompiler" value="true"/>
</bean>
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
<property name="templateEngine" ref="templateEngine"/>
</bean>
<!-- i18n国际化 -->
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<!-- 找不到key时用key作为返回值 -->