Class ThymeleafViewSupportConfiguration
java.lang.Object
com.foreach.across.modules.web.config.ThymeleafViewSupportConfiguration
@Configuration
@ConditionalOnProperty(value="across.web.views.thymeleaf.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties.class)
public class ThymeleafViewSupportConfiguration
extends Object
Registers Thymeleaf support for all files with .html or .thtml extension.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
refreshTemplateResolvers
(org.thymeleaf.spring6.SpringTemplateEngine engine) org.thymeleaf.spring6.SpringTemplateEngine
springTemplateEngine
(PrefixingPathRegistry prefixingPathRegistry) org.thymeleaf.templateresolver.ITemplateResolver
org.thymeleaf.templateresolver.ITemplateResolver
org.thymeleaf.spring6.view.ThymeleafViewResolver
thymeleafViewResolver
(org.thymeleaf.spring6.SpringTemplateEngine springTemplateEngine) viewElementAttributeConverter
(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Constructor Details
-
ThymeleafViewSupportConfiguration
public ThymeleafViewSupportConfiguration()
-
-
Method Details
-
springTemplateEngine
@Bean @Exposed @Qualifier("springTemplateEngine") public org.thymeleaf.spring6.SpringTemplateEngine springTemplateEngine(PrefixingPathRegistry prefixingPathRegistry) -
refreshTemplateResolvers
@PostRefresh public void refreshTemplateResolvers(org.thymeleaf.spring6.SpringTemplateEngine engine) -
acrossWebDialect
-
thymeleafViewElementProcessorRegistry
-
viewElementAttributeConverter
@Bean @Exposed public ViewElementAttributeConverter viewElementAttributeConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
thymeleafViewResolver
@Bean @Exposed @ConditionalOnMissingBean(name="thymeleafViewResolver") public org.thymeleaf.spring6.view.ThymeleafViewResolver thymeleafViewResolver(org.thymeleaf.spring6.SpringTemplateEngine springTemplateEngine) -
templateResolver
-
thtmlTemplateResolver
-