Class MustacheAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(com.samskivert.mustache.Mustache.class)
@EnableConfigurationProperties(MustacheProperties.class)
@Import({org.springframework.boot.autoconfigure.mustache.MustacheServletWebConfiguration.class,org.springframework.boot.autoconfigure.mustache.MustacheReactiveWebConfiguration.class})
public class MustacheAutoConfiguration
extends Object
Auto-configuration
for Mustache.- Since:
- 1.2.2
- Author:
- Dave Syer, Brian Clozel
-
Constructor Summary
ConstructorDescriptionMustacheAutoConfiguration
(MustacheProperties mustache, ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
com.samskivert.mustache.Mustache.Compiler
mustacheCompiler
(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader)
-
Constructor Details
-
MustacheAutoConfiguration
public MustacheAutoConfiguration(MustacheProperties mustache, ApplicationContext applicationContext)
-
-
Method Details
-
checkTemplateLocationExists
public void checkTemplateLocationExists() -
mustacheCompiler
@Bean @ConditionalOnMissingBean 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()
-