@Configuration @ConditionalOnClass(value=javax.servlet.Servlet.class) @ConditionalOnWebApplication public static class VelocityAutoConfiguration.VelocityWebConfiguration extends VelocityAutoConfiguration.VelocityConfiguration
properties
Constructor and Description |
---|
VelocityWebConfiguration() |
Modifier and Type | Method and Description |
---|---|
ResourceUrlEncodingFilter |
resourceUrlEncodingFilter() |
VelocityConfigurer |
velocityConfigurer() |
org.apache.velocity.app.VelocityEngine |
velocityEngine(VelocityConfigurer configurer) |
EmbeddedVelocityViewResolver |
velocityViewResolver() |
applyProperties
@Bean @ConditionalOnMissingBean(value=org.springframework.web.servlet.view.velocity.VelocityConfig.class) public VelocityConfigurer velocityConfigurer()
@Bean public org.apache.velocity.app.VelocityEngine velocityEngine(VelocityConfigurer configurer) throws org.apache.velocity.exception.VelocityException, IOException
org.apache.velocity.exception.VelocityException
IOException
@Bean @ConditionalOnMissingBean(name="velocityViewResolver") public EmbeddedVelocityViewResolver velocityViewResolver()
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledResourceChain public ResourceUrlEncodingFilter resourceUrlEncodingFilter()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.