58 lines
2.9 KiB
XML
58 lines
2.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
|
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
|
|
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
|
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
|
|
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
|
|
http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo.xsd">
|
|
|
|
|
|
|
|
<bean id="templateResolver" class="org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver">
|
|
<property name="prefix" value="/resources/templates/" />
|
|
<property name="suffix" value=".html" />
|
|
<!-- HTML is the default value, added here for the sake of clarity. -->
|
|
<property name="templateMode" value="HTML" />
|
|
<!-- Template cache is true by default. Set to false if you want -->
|
|
<!-- templates to be automatically updated when modified. -->
|
|
<property name="cacheable" value="true" />
|
|
</bean>
|
|
|
|
<!-- SpringTemplateEngine automatically applies SpringStandardDialect and -->
|
|
<!-- enables Spring's own MessageSource message resolution mechanisms. -->
|
|
<bean id="templateEngine"
|
|
class="org.thymeleaf.spring4.SpringTemplateEngine">
|
|
<property name="templateResolver" ref="templateResolver" />
|
|
<!-- Enabling the SpringEL compiler with Spring 4.2.4 or newer can speed up -->
|
|
<!-- execution in most scenarios, but might be incompatible with specific -->
|
|
<!-- cases when expressions in one template are reused across different data -->
|
|
<!-- types, so this flag is "false" by default for safer backwards -->
|
|
<!-- compatibility. -->
|
|
<property name="enableSpringELCompiler" value="true" />
|
|
</bean>
|
|
|
|
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
|
<property name="templateEngine" ref="templateEngine" />
|
|
<!-- NOTE 'order' and 'viewNames' are optional -->
|
|
<property name="order" value="1" />
|
|
<property name="viewNames" value="*.html" />
|
|
</bean>
|
|
|
|
|
|
|
|
<mvc:resources mapping="/resources/**" location="/resources/" />
|
|
<!-- <context:component-scan base-package="eu.vre4eic.evre." />-->
|
|
|
|
|
|
|
|
</beans>
|