Skip to content
Advertisement

registration form is not submitting in spring boot and not hitting endpoints

I’m working on a registration form in Spring Boot and thymeleaf but it’s not submitting to the database. I even run the debugger mood and it did not hit the endpoints for the registration. Note, that my login and other functionalities work fine. I’m following this here to create my registration

How to I get this endpoint to create a new user?

register.html

JavaScript

controller.java

JavaScript

UserService.java

JavaScript

Advertisement

Answer

I solved this problem by changing two things; first, I created a custom saveNewUser() but JPA manages that better so I changed that to this.

UserService.java

JavaScript

I also had to change my endpoint to this

controller.java

JavaScript
Advertisement