From 58216dfde631856612f00b61cc4a54623759f979 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 8 Jan 2021 15:41:49 +0100 Subject: [PATCH] WIP:controller --- pom.xml | 4 ---- .../demo/httpresources/DemoController.java | 20 ------------------- 2 files changed, 24 deletions(-) delete mode 100644 src/main/java/de/juplo/demo/httpresources/DemoController.java diff --git a/pom.xml b/pom.xml index 64227c7..3cd520c 100644 --- a/pom.xml +++ b/pom.xml @@ -23,10 +23,6 @@ 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/DemoController.java b/src/main/java/de/juplo/demo/httpresources/DemoController.java deleted file mode 100644 index 96020ff..0000000 --- a/src/main/java/de/juplo/demo/httpresources/DemoController.java +++ /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; - } -} -- 2.20.1