Commit 3ce13520 by Patryk Czarnik

Rozmowa - formularz

parent 3829fbd5
package com.example.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class RozmowaController {
@RequestMapping("/rozmowa")
public String rozmowa() {
return "rozmowa.html";
}
}
<!DOCTYPE html>
<html lang="pl" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Rozmowa</title>
<link rel="stylesheet" type="text/css" th:href="@{/styl.css}" href="../static/styl.css">
</head>
<body>
<h1>Rozmowa ze Springiem</h1>
<form>
<label for="imie">Jak masz na imię?</label><br>
<input type="text" name="imie" id="imie"><br>
<button>OK</button>
</form>
</body>
</html>
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