+
+ +

Class ThymeleafWithHttpResourceProtocolResolverIT.Application

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    +
    +
    +
    Enclosing class:
    +
    ThymeleafWithHttpResourceProtocolResolverIT
    +
    +
    +
    @SpringBootApplication
    +public static class ThymeleafWithHttpResourceProtocolResolverIT.Application
    +extends Object
    +implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      Application() 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidaddResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) 
      org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolverdefaultTemplateResolver​(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, + org.springframework.context.ApplicationContext applicationContext, + org.mockserver.integration.ClientAndServer server) +
      This mimics the autoconfiguration of Thymeleaf in Spring-Boot.
      +
      ThymeleafWithHttpResourceProtocolResolverIT.TestControllertestController() 
      + +
        +
      • + + +

        Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        +addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Application

        +
        public Application()
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        defaultTemplateResolver

        +
        @Bean
        +public org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver defaultTemplateResolver​(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties,
        +                                                                                                     org.springframework.context.ApplicationContext applicationContext,
        +                                                                                                     org.mockserver.integration.ClientAndServer server)
        +
        This mimics the autoconfiguration of Thymeleaf in Spring-Boot. + Reason: Found no other way to inject the property spring.thymeleaf.prefix dynamically
        +
      • +
      + + + + + + + +
        +
      • +

        addResourceHandlers

        +
        public void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
        +
        +
        Specified by:
        +
        addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+