@Configuration @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,
Environment environment,
ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
void |
checkTemplateLocationExists() |
com.samskivert.mustache.Mustache.Compiler |
mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader) |
MustacheResourceTemplateLoader |
mustacheTemplateLoader() |
public MustacheAutoConfiguration(MustacheProperties mustache, Environment environment, ApplicationContext applicationContext)
@PostConstruct public void checkTemplateLocationExists()
@Bean @ConditionalOnMissingBean public com.samskivert.mustache.Mustache.Compiler mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader)
@Bean @ConditionalOnMissingBean(value=com.samskivert.mustache.Mustache.TemplateLoader.class) public MustacheResourceTemplateLoader mustacheTemplateLoader()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.