Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save qsLI/d09e21008149da54dbd43f2e697689c3 to your computer and use it in GitHub Desktop.
Save qsLI/d09e21008149da54dbd43f2e697689c3 to your computer and use it in GitHub Desktop.
<bean id="templateResolver"
class="org.thymeleaf.templateresolver.ServletContextTemplateResolver">
<property name="prefix" value="/WEB-INF/views/" />
<property name="suffix" value=".html" />
<property name="templateMode" value="HTML5" />
</bean>
<bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine">
<property name="templateResolver" ref="templateResolver" />
</bean>
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
<property name="templateEngine" ref="templateEngine" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment