@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=com.samskivert.mustache.Mustache.class) @EnableConfigurationProperties(value=MustacheProperties.class) @Import(value={org.springframework.boot.autoconfigure.mustache.MustacheServletWebConfiguration.class,org.springframework.boot.autoconfigure.mustache.MustacheReactiveWebConfiguration.class}) public class MustacheAutoConfiguration extends Object
Auto-configuration
for Mustache.Constructor and Description |
---|
MustacheAutoConfiguration(MustacheProperties mustache,
ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
void |
checkTemplateLocationExists() |
com.samskivert.mustache.Mustache.Compiler |
mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader,
Environment environment) |
MustacheResourceTemplateLoader |
mustacheTemplateLoader() |
public MustacheAutoConfiguration(MustacheProperties mustache, ApplicationContext applicationContext)
public void checkTemplateLocationExists()
@Bean @ConditionalOnMissingBean public com.samskivert.mustache.Mustache.Compiler mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader, Environment environment)
@Bean @ConditionalOnMissingBean(value=com.samskivert.mustache.Mustache.TemplateLoader.class) public MustacheResourceTemplateLoader mustacheTemplateLoader()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.