<!-- used versions (not defined in spring-boot) -->
<httpclient-spring-boot-starter.version>1.0-SNAPSHOT</httpclient-spring-boot-starter.version>
+ <thymeproxy.version>1.0-SNAPSHOT</thymeproxy.version>
</properties>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
+ <dependency>
+ <groupId>de.juplo</groupId>
+ <artifactId>thymeproxy</artifactId>
+ <version>${thymeproxy.version}</version>
+ </dependency>
<dependency>
<groupId>de.juplo</groupId>
<artifactId>httpclient-spring-boot-starter</artifactId>
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;
-import org.springframework.web.servlet.mvc.UrlFilenameViewController;
+import org.thymeleaf.TemplateEngine;
import org.thymeleaf.resourceresolver.IResourceResolver;
import org.thymeleaf.resourceresolver.UrlResourceResolver;
import org.thymeleaf.templateresolver.TemplateResolver;
@Bean
public RegexUrlHandlerMapping proxiedHandlerMapping(
ProxyHttpRequestHandler proxy,
- UrlFilenameViewController views
+ UrlThymeleafViewController views
)
{
RegexUrlHandlerMapping mapping = new RegexUrlHandlerMapping();
}
@Bean
- public UrlFilenameViewController urlFilenameViewController()
+ public UrlThymeleafViewController urlThymeleafViewController(
+ TemplateEngine engine
+ )
{
- return new UrlFilenameViewController();
+ return new UrlThymeleafViewController(engine);
}
@Bean