Package de.juplo.httpresources
Class ThymeleafWithHttpResourceProtocolResolverIT.Application
- java.lang.Object
-
- de.juplo.httpresources.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 Constructor Description Application()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
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.ThymeleafWithHttpResourceProtocolResolverIT.TestController
testController()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
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 propertyspring.thymeleaf.prefix
dynamically
-
testController
@Bean public ThymeleafWithHttpResourceProtocolResolverIT.TestController testController()
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
-