Skip to content
Snippets Groups Projects
Commit 6c0f5f60 authored by Julian Horner's avatar Julian Horner
Browse files

Remove unnecessary files

parent f5cd3bde
No related branches found
No related tags found
No related merge requests found
/*
* 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); }
//---------------------------------------------------------------------------------------------
}
/*
* 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
<!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>
<!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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment