Code Snippet

Just another Code Snippet site

[Velocity] Allow reload of templates without weblogic restart (dev only)

Spring definition :

    <bean id="velocityConfig"
        class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
        <property name="resourceLoaderPath" value="WEB-INF/views..."/>
        <property name="configLocation" value="WEB-INF/velocity/velocity.properties"/>
	<property name="preferFileSystemAccess" value="false" />
    </bean>

velocity.properties :

spring.resource.loader.cache=false
file.resource.loader.cache=false
class.resource.loader.cache=false
velocimacro.library.autoreload=true
velocimacro.permissions.allow.inline.to.replace.global=true
velocity.engine.resource.manager.cache.enabled=false
file.resource.loader.modificationCheckInterval=1

, ,


Comments are currently closed.