Skip to content

Instantly share code, notes, and snippets.

@kabdessamad1
Created April 3, 2015 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kabdessamad1/a58bc420b3bbc39c5a78 to your computer and use it in GitHub Desktop.
Save kabdessamad1/a58bc420b3bbc39c5a78 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