Hi ihr lieben,
habe eine ähnliche Frage schon mal gestellt, aber kam leider nicht voran. Ich würde gerne eine Web Applikation programmieren mit SpringBoot und Java.
Zum Verständnis: die Get Methode mit ("/home") mapped doch quasi die "action =/home" in der html Datei oder?
Bekomme eine Error Meldung :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
There was an unexpected error (type=Not Found, status=404).
No message available
meine HomeController.java Klasse
meine home.html Datei
Vielen Dank für die Hilfe
habe eine ähnliche Frage schon mal gestellt, aber kam leider nicht voran. Ich würde gerne eine Web Applikation programmieren mit SpringBoot und Java.
Zum Verständnis: die Get Methode mit ("/home") mapped doch quasi die "action =/home" in der html Datei oder?
Bekomme eine Error Meldung :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
There was an unexpected error (type=Not Found, status=404).
No message available
meine HomeController.java Klasse
Code:
@Controller
public class HomeController {
@GetMapping("/home")
public String home(){
System.out.println("Hello world");
return "home";
}
}
meine home.html Datei
Code:
<!DOCTYPE HTML>
<html>
<head>
<head>
<title>Getting Started: Serving Web Content</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<form action="/home" method="get">
First name: <input type="text" name="fname"><br> Last
name: <input type="text" name="lname"><br> <input
type="submit" value="Submit">
</form>
</body>
</html>
Vielen Dank für die Hilfe