From the course: Complete Guide to Spring MVC

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Test the application

Test the application

- [Instructor] All right, now that we have our main application running, I want you to go to your browser, open up a new window, and go ahead and navigate to http://. We're going to go ahead and call out local host, that 8080, and our specific endpoint that we made, which was /greeting, and we should get Hello World page. Now let's test out the name parameter that we made, and I'm going to go ahead and append at the end of our URL here, ?name=User. Oh, what just happened? Did anybody, did you guys catch that? It changed from Hello World to Hello User, okay? So this change is demonstrating that the request param arrangement that we had in the greeting controller is working as we expected, and the name parameter has been given a default value of world, but it has been overridden through a query string that we have now used and changed to user. Our Git mapping greeting annotation in our controller tells MVC to handle Git requests to the greeting endpoint. Our request param annotation and…

Contents