From d5f3c3ab43e53ce12d326d4f397d21c67050fab5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 15 Jan 2021 13:35:56 +0100 Subject: [PATCH] WIP --- pom.xml | 4 ++++ .../demo/httpresources/ProxyController.java | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/main/java/de/juplo/demo/httpresources/ProxyController.java 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; + } +} -- 2.20.1