Class MustacheAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration
@Configuration @ConditionalOnClass(com.samskivert.mustache.Mustache.class) @EnableConfigurationProperties(MustacheProperties.class) public class MustacheAutoConfiguration extends Object
Auto-configuration
for Mustache.- Since:
- 1.2.2
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MustacheAutoConfiguration.MustacheWebConfiguration
Constructor Summary
Constructors Constructor Description MustacheAutoConfiguration(MustacheProperties mustache, org.springframework.core.env.Environment environment, org.springframework.context.ApplicationContext applicationContext)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkTemplateLocationExists()
com.samskivert.mustache.Mustache.Compiler
mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader)
MustacheResourceTemplateLoader
mustacheTemplateLoader()
Constructor Detail
MustacheAutoConfiguration
public MustacheAutoConfiguration(MustacheProperties mustache, org.springframework.core.env.Environment environment, org.springframework.context.ApplicationContext applicationContext)
Method Detail
checkTemplateLocationExists
@PostConstruct public void checkTemplateLocationExists()
mustacheCompiler
@Bean @ConditionalOnMissingBean(com.samskivert.mustache.Mustache.Compiler.class) public com.samskivert.mustache.Mustache.Compiler mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader)
mustacheTemplateLoader
@Bean @ConditionalOnMissingBean(com.samskivert.mustache.Mustache.TemplateLoader.class) public MustacheResourceTemplateLoader mustacheTemplateLoader()