From the course: Spring: Spring MVC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Test the application

Test the application

From the course: Spring: Spring MVC

Start my 1-month free trial

Test the application

- [Instructor] The few last steps that we have to do is we have to make sure that the action mapping on register.jsp form is mapped correctly with a registration controller. So let's go to IDE. Pick that URL pattern. Go to register.jsp and make sure that we have embedded that in the action attribute, registeruser. And what's the next step? Next is to add the UserRepository class. So the way we added a database interaction class for the products, we're going to add one more for user. So under the repository package, I'm going to say New, Java class, UserRepository. Make sure that you annotate that with @Repository, and let this be an interface which extends CrudRepository. The object that we are trying to deal with is the User object and the primary key is an Integer. So as I've said before that the CrudRepository on line eight that we have extended is going to provide us with all the basic Crud methods, so you really…

Contents