WIP:controller controller
authorKai Moritz <kai@juplo.de>
Fri, 8 Jan 2021 14:41:49 +0000 (15:41 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 8 Jan 2021 14:41:49 +0000 (15:41 +0100)
pom.xml
src/main/java/de/juplo/demo/httpresources/DemoController.java [deleted file]

diff --git a/pom.xml b/pom.xml
index 64227c7..3cd520c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-web</artifactId>
                </dependency>
-               <dependency>
-                       <groupId>org.springframework.boot</groupId>
-                       <artifactId>spring-boot-starter-thymeleaf</artifactId>
-               </dependency>
                <dependency>
                        <groupId>de.juplo</groupId>
                        <artifactId>http-resources</artifactId>
diff --git a/src/main/java/de/juplo/demo/httpresources/DemoController.java b/src/main/java/de/juplo/demo/httpresources/DemoController.java
deleted file mode 100644 (file)
index 96020ff..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-package de.juplo.demo.httpresources;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.ui.Model;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-
-
-@Controller
-public class DemoController
-{
-  @RequestMapping("/controller.html")
-  public String controller(
-      @RequestParam(defaultValue = "index") String template,
-      Model model)
-  {
-    model.addAttribute("template", template);
-    return template;
-  }
-}