The optional "configLocation" property sets the location of the Velocity properties file, within the current application. Velocity properties can be overridden via "velocityProperties", or even completely specified locally, avoiding the need for an external properties file.
The "resourceLoaderPath" property can be used to specify the Velocity resource loader path via Spring's Resource abstraction, possibly relative to the Spring application context.
If "overrideLogging" is true (the default), the VelocityEngine will be configured to log via Commons Logging, that is, using the Spring-provided {@link CommonsLoggingLogSystem} as log system.
The simplest way to use this class is to specify a {@link #setResourceLoaderPath(String) "resourceLoaderPath"}; the VelocityEngine typically then does not need any further configuration. @author Juergen Hoeller @see #setConfigLocation @see #setVelocityProperties @see #setResourceLoaderPath @see #setOverrideLogging @see #createVelocityEngine @see CommonsLoggingLogSystem @see VelocityEngineFactoryBean @see org.springframework.web.servlet.view.velocity.VelocityConfigurer @see org.apache.velocity.app.VelocityEngine
|
|