Skip to content
Snippets Groups Projects
Commit 4247a8bc authored by Johannes Wilhelm's avatar Johannes Wilhelm
Browse files

neu

parent e0c10fb8
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,9 @@ package de.thd.pms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan({"com.mypackage.controller"})
public class SchleicherhofPmsApplication {
......
package de.thd.pms.controller;
//import org.apache.logging.log4j.LogManager;
//import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.bind.annotation.RestController;
@Controller
public class HomeController {
@RestController
public class HomeController {
@RequestMapping("/welcome")
public String welcome() {
return "hallo";
public String home() {
return "Hallo Leute";
}
}
......@@ -3,4 +3,4 @@ spring.datasource.url=jdbc:mysql://localhost:3306/schleicherhof_pms
spring.datasource.username=
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
server.port=4321
#server.port=4321
<!DOCTYPE html>
<html lang="de" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="head::head"></head>
<body>
<div class="container-fluid">
<h1>Fahrtenbuch</h1>
</div>
<nav th:include="menu::menu"></nav>
<div class="container-fluid"><h2 th:text="${title}">Titel</h2></div>
<div class="container-fluid"><p th:text="${message}">Nachricht</p></div>
<div th:include="foot::foot"></div>
</body>
</html>
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