Classic "Hello, World!" remade it with Spring.
Build an endpoint which any browser can connect to. Even can send it your name, and it will respond to you.
- Languages: Java.
- Libraries: SpringBoot.
-
Download this repo in your local machine.
-
Move inside the folder where downloaded this repo.
-
Execute the follow command:
- MacOS/Linux:
./mvnw spring-boot:run
- Windows:
mvnw spring-boot:run
-
Open your browser and enter this location: http://localhost:8080/hello.
- Optional: Add ?name= and any word yo like to the URL.
- Example: http://localhost:8080/hello?name=Cromega.