@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 |
---|---|
VelocityConfigurer |
velocityConfigurer() |
VelocityEngine |
velocityEngine(VelocityConfigurer configurer) |
VelocityViewResolver |
velocityViewResolver() |
applyProperties
@Bean @ConditionalOnMissingBean(value=org.springframework.web.servlet.view.velocity.VelocityConfig.class) public VelocityConfigurer velocityConfigurer()
@Bean public VelocityEngine velocityEngine(VelocityConfigurer configurer) throws VelocityException, IOException
VelocityException
IOException
@Bean @ConditionalOnMissingBean(name="velocityViewResolver") public VelocityViewResolver velocityViewResolver()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.