Class AcrossWebTemplateConfig

java.lang.Object
com.foreach.across.modules.web.config.AcrossWebTemplateConfig
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @ConditionalOnProperty(value="across.web.templates.enabled", matchIfMissing=true) @OrderInModule(2) public class AcrossWebTemplateConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configures web template support with automatic registration of named web templates. This also activates support for prefixing paths in redirect or forward view names.
  • Constructor Details

    • AcrossWebTemplateConfig

      public AcrossWebTemplateConfig()
  • Method Details

    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      Specified by:
      addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • webTemplateRegistry

      @Bean @Exposed public WebTemplateRegistry webTemplateRegistry()
    • webTemplateInterceptor

      @Bean public WebTemplateInterceptor webTemplateInterceptor()
    • registerNamedWebTemplateProcessors

      @PostRefresh public void registerNamedWebTemplateProcessors()