- Built a Maven based Spring Web application in
Spring MVC
usingJava, Maven, and Spring Boot Framework
. - Exposed the API method as rest endpoints using
RestController
annotation. - Used
Apache Tomcat
as default embedded container to process theHTTP requests
and return the response.
- Intellij IDEA or any Java based IDEA
- First user need to open the project folder in the
Intellij IDEA
. - Then user can run the
simpleAPIApplication.java
class and can see the web output of the reponse ofHTTP Request
under thehttp://localhost:8080/
. - The port number
8080
is by default under Apache Tomcat, and user can configure the port number under theapplication.yml
file.
- One can't send HTTP request with local host on online Postman and test it.