Проблем с моделите и вюто
https://pastebin.com/kFaZL5fe --> Контролер
https://pastebin.com/12eH1109 -> Model
https://pastebin.com/RQ5YD05h -> View
Хвърля ми Exception когато подам данните през формата:
2018-03-01 19:38:37.505 ERROR 16040 --- [nio-8080-exec-4] org.thymeleaf.TemplateEngine : [THYMELEAF][http-nio-8080-exec-4] Exception processing template "register/index": An error happened during template parsing (template: "class path resource [templates/register/index.html]")
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/register/index.html]")
...
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'viewModel' available as request attribute