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 - Spring Tutorial
From the course: Complete Guide to Spring MVC
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What you will build and what you need2m 50s
-
Start from scratch vs. skipping the basics1m 41s
-
(Locked)
Starting with Spring Initializr4m 49s
-
(Locked)
Skip basics: Source repository for this guide1m 46s
-
(Locked)
Create a web controller9m 13s
-
(Locked)
Spring Boot devtools4m 45s
-
(Locked)
Run the application2m 38s
-
(Locked)
Test the application2m 7s
-
(Locked)
Add a home page5m 11s
-
(Locked)
Summary and next steps4m 57s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-