feat: rename home to index
This commit is contained in:
@@ -5,10 +5,10 @@ import org.springframework.ui.Model;
|
|||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class HomeController {
|
public class IndexController {
|
||||||
@GetMapping("/")
|
@GetMapping("/")
|
||||||
public String home(Model model) {
|
public String home(Model model) {
|
||||||
model.addAttribute("message", "Hello Thymeleaf!xxx");
|
model.addAttribute("message", "Hello Thymeleaf!xxx");
|
||||||
return "home";
|
return "index";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns:th="http://www.thymeleaf.org">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Home</title>
|
|
||||||
<link href="styles.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1 class="bg-red-200" th:text="${message}">Placeholder message</h1>
|
|
||||||
<p>Test 2</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
12
src/main/resources/templates/index.html
Normal file
12
src/main/resources/templates/index.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns:th="http://www.thymeleaf.org">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Projektverwaltung</title>
|
||||||
|
<link href="styles.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 class="bg-red-200" th:text="${message}">Placeholder message</h1>
|
||||||
|
<p>Test 2</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user