this code describes an endpoint that should be made available over the web
all the code required to create a simple “Hello World” web
is designed to take a String parameter called name,
use our hello() method
telling Spring to expect a name value in the request
Let’s build and run the program.
We can build and run the application by issuing the following command:
Spring Boot’s embedded Apache Tomcat server
is listening for requests on localhost port 8080
You should get a nice friendly response like this:
Now change the contents of the file by adding the extra method and annotations shown in the code below. You can copy and paste the code or just type it.