I want to reload velocity template as it's changed. For this I've set the followings, but reload doesn't work when I manually change a .vm file inside META-INF/template/
.
velocimacro.library.autoreload = true
[spring|file|class].resource.loader.cache = false
Any idea? Here is my velocityEngine bean
<bean id="velocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
<property name="resourceLoaderPath" value="classpath:META-INF/template/" />
<property name="preferFileSystemAccess" value="false" />
<property name="velocityProperties">
<props>
<prop key="spring.resource.loader.cache">false</prop>
<prop key="file.resource.loader.cache">false</prop>
<prop key="class.resource.loader.cache">false</prop>
<prop key="velocimacro.library.autoreload">true</prop>
<prop key="resource.loader">spring</prop>
<prop key="directive.foreach.counter.name">counter</prop>
<prop key="directive.foreach.counter.initial.value">0</prop>
<prop key="spring.resource.loader.class">
org.springframework.ui.velocity.SpringResourceLoader
</prop>
</props>
</property>
</bean>