1

add controller, index.html, admin in application.properties

This commit is contained in:
XXNitram
2020-03-04 13:45:37 +01:00
parent 0cf49a55a2
commit 13af32cff4
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package mops.gruppen2.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class Gruppen2Controller {
@GetMapping("/")
public String index() {
return "index";
}
}

View File

@ -8,3 +8,7 @@ spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=root
spring.datasource.password=geheim
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.security.user.name=root
spring.security.user.password=1234
spring.security.user.roles=ADMIN

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
th:replace="~{mopslayout :: html(name='Name des Subsystems', headcontent=~{:: headcontent}, navigation=~{:: navigation}, bodycontent=~{:: bodycontent})}">
<head>
<meta charset="utf-8">
<title>Name des Subsystems</title>
<th:block th:fragment="headcontent">
<!-- Links, Skripts, Styles hier einfügen! -->
</th:block>
</head>
<body>
<header>
<nav class="navigation navigation-secondary" is="mops-navigation" th:fragment="navigation">
<!-- Navigation als ungeordnete Liste mit einfachen Links hier einfügen! -->
</nav>
</header>
<main th:fragment="bodycontent">
<!-- Restlichen Inhalt hier einfügen! -->
</main>
</body>
</html>