From 6c0f5f600290b5da005f7ef154c902adbb3bfc50 Mon Sep 17 00:00:00 2001 From: Julian Horner <julianhorner@web.de> Date: Tue, 17 Dec 2019 15:52:19 +0100 Subject: [PATCH] Remove unnecessary files --- src/main/java/de/rtuni/ms/ds/Application.java | 31 -------------- .../java/de/rtuni/ms/ds/HomeController.java | 42 ------------------- src/main/resources/templates/index.html | 11 ----- src/main/resources/templates/securePage.html | 11 ----- 4 files changed, 95 deletions(-) delete mode 100644 src/main/java/de/rtuni/ms/ds/Application.java delete mode 100644 src/main/java/de/rtuni/ms/ds/HomeController.java delete mode 100644 src/main/resources/templates/index.html delete mode 100644 src/main/resources/templates/securePage.html diff --git a/src/main/java/de/rtuni/ms/ds/Application.java b/src/main/java/de/rtuni/ms/ds/Application.java deleted file mode 100644 index e41108b..0000000 --- a/src/main/java/de/rtuni/ms/ds/Application.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2019 (C) by Julian Horner. - * All Rights Reserved. - */ - -package de.rtuni.ms.ds; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.cloud.netflix.eureka.EnableEurekaClient; - -/** - * Dummy service. - * - * @author Julian - * - */ -@SpringBootApplication -@EnableEurekaClient -public class Application { - //--------------------------------------------------------------------------------------------- - - /** - * Starts the application. - * - * @param args The arguments - */ - public static void main(final String[] args) { SpringApplication.run(Application.class, args); } - - //--------------------------------------------------------------------------------------------- -} diff --git a/src/main/java/de/rtuni/ms/ds/HomeController.java b/src/main/java/de/rtuni/ms/ds/HomeController.java deleted file mode 100644 index 6673d96..0000000 --- a/src/main/java/de/rtuni/ms/ds/HomeController.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2019 (C) by Julian Horner. - * All Rights Reserved. - */ - -package de.rtuni.ms.ds; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -/** - * Class that handles all kind of requests. - * - * @author Julian - * - */ -@Controller -public class HomeController { - //--------------------------------------------------------------------------------------------- - - /** - * Catches the request for the start page and returns the name of the corresponding template. - * - * @return The name of the template - */ - @RequestMapping("/") - public String index() { - return "index"; - } - - /** - * Catches the request for the secure page and returns the name of the corresponding template. - * - * @return The name of the template - */ - @RequestMapping("/securePage") - public String securePage() { - return "securePage"; - } - - //--------------------------------------------------------------------------------------------- -} \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html deleted file mode 100644 index ab3188e..0000000 --- a/src/main/resources/templates/index.html +++ /dev/null @@ -1,11 +0,0 @@ -<!DOCTYPE HTML> -<html xmlns:th="http://www.thymeleaf.org"> - <head> - <title>Dummy page</title> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - </head> - <body> - <h1>Page without authentication</h1> - <a href="#" th:href="@{/securePage}">geschützte Seite anfordern</a> - </body> -</html> diff --git a/src/main/resources/templates/securePage.html b/src/main/resources/templates/securePage.html deleted file mode 100644 index 55b3574..0000000 --- a/src/main/resources/templates/securePage.html +++ /dev/null @@ -1,11 +0,0 @@ -<!DOCTYPE HTML> -<html xmlns:th="http://www.thymeleaf.org"> - <head> - <title>Very secure page</title> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - </head> - <body> - <h1>Page with authentication</h1> - <a href="#" th:href="@{/}">You're authorised to see this page</a> - </body> -</html> \ No newline at end of file -- GitLab