@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") @ConditionalOnProperty(name="spring.velocity.enabled", matchIfMissing=true) public EmbeddedVelocityViewResolver velocityViewResolver()
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledResourceChain public ResourceUrlEncodingFilter resourceUrlEncodingFilter()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.