Commit 199c74a6 by Patryk Czarnik

index.html w Thymeleaf

parent bcd5fb64
......@@ -25,6 +25,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
......
package sklep.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class WebController {
@GetMapping("/")
public String root() {
return "index";
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Strona główna</title>
</head>
<body>
<h1>Witajcie w naszej apce</h1>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment