Fehler
Code: Select all
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Mar 01 01:10:34 EET 2018
There was an unexpected error (type=Internal Server Error, status=500).
An error happened during template parsing (template: "class path resource [templates/register.html]")
Code: Select all
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/register.html]")
Code: Select all
Insert title here
Register
Code: Select all
@Controller
@RequestMapping("/")
public class UserController {
@RequestMapping(value="", method=RequestMethod.GET)
public String getHomePage()
{
return "home";
}
@RequestMapping(value="register",method=RequestMethod.GET)
public String getRegisterPage(Model model)
{
model.addAttribute("user",new User());
return "register";
}
}