@Configuration @AutoConfigureOrder(value=2147483647) @EnableConfigurationProperties @PropertySource(value="classpath:/albirar-template-engine.yaml") @ComponentScan(basePackageClasses={ITemplateEngine.class,ThymeleafSpringTemplateEngineImpl.class,TemplateEngineRegistryDefaultImpl.class}) public class TemplateEngineConfiguration extends Object
The configuration for template engine.
Constructor and Description |
---|
TemplateEngineConfiguration() |
Modifier and Type | Method and Description |
---|---|
ConfigurationPropertiesBean |
configurationPropertiesBean() |
org.thymeleaf.spring5.SpringTemplateEngine |
templateEngine(org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver resolver)
The
SpringTemplateEngine to use on rendering. |
org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver |
thymeleafTemplateResolver(ConfigurationPropertiesBean configurationProperties)
The template resolver for thymeleaf.
|
@Bean @ConditionalOnMissingBean public org.thymeleaf.spring5.SpringTemplateEngine templateEngine(@Autowired org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver resolver)
The SpringTemplateEngine
to use on rendering.
resolver
- The resolver for resourcesSpringTemplateEngine
configured to use them@Bean @ConditionalOnMissingBean public org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver thymeleafTemplateResolver(@Autowired ConfigurationPropertiesBean configurationProperties)
The template resolver for thymeleaf.
configurationProperties
- The configuration properties for thymeleaf resolver.@Bean @ConfigurationProperties(prefix="albirar.templates") public ConfigurationPropertiesBean configurationPropertiesBean()
Copyright © 2021 Albirar. All rights reserved.