From: Kai Moritz Date: Fri, 15 Jan 2021 12:35:56 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=d5f3c3ab43e53ce12d326d4f397d21c67050fab5;p=demos%2Fhttpresources WIP --- diff --git a/pom.xml b/pom.xml index 3cd520c..64227c7 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,10 @@ org.springframework.boot spring-boot-starter-web + + org.springframework.boot + spring-boot-starter-thymeleaf + de.juplo http-resources diff --git a/src/main/java/de/juplo/demo/httpresources/ProxyController.java b/src/main/java/de/juplo/demo/httpresources/ProxyController.java new file mode 100644 index 0000000..411d7fc --- /dev/null +++ b/src/main/java/de/juplo/demo/httpresources/ProxyController.java @@ -0,0 +1,16 @@ +package de.juplo.demo.httpresources; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; + + +@Controller +public class ProxyController +{ + @RequestMapping("/{path}.html") + public String controller(@PathVariable String path) + { + return path; + } +}