In this post, let’s experiment to create a simple spring boot application.
Prerequisites
- Java Development Kit – Java 0.0 above
- Eclipse – jee-2021-03 or any other IDE
1. Create your project from https://start.spring.io/
On click of Generate, your project will be downloaded as a zip file.
2. Open eclipse workspace and import your project using maven
4. Create a Rest API
Create a GreetingController as below,
3. Goto Application.java and run as Java Application
Hit our api now, http://localhost:8080/welcome-note
Congratulations. Our spring boot application is up and running.