The simplest way to use this class is to specify a "resourceLoaderPath"; you do not need any further configuration then. For example, in a web application context:
<bean id="velocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean"> <property name="resourceLoaderPath" value="/WEB-INF/velocity/"/> </bean>See the base class VelocityEngineFactory for configuration details. @author Juergen Hoeller @see #setConfigLocation @see #setVelocityProperties @see #setResourceLoaderPath @see org.springframework.web.servlet.view.velocity.VelocityConfigurer
|
|