spring boot demo with postgress or SQL Server database. In this application perform CRUD operations.
** Pre requisite **
- Installed Postgress or SQL Server
- Create a database name "spring_boot_demo_db"
- Installed Java and set environment path
- Installed Maven and set environment path
- Installed Postman for check APIs
For check java installed or not
java -version
For check maven installed or not
mvn -v
For compile spring boot application
mvn clean package
For run spring boot application
mvn spring-boot:run
Swagger URL
http://localhost:9090/swagger-ui/index.html
POST Request
http://localhost:9090/api/states
{
"stateNameEn": "Assam",
"stateID": "S03",
"isActive": true,
"stateNameHn": "असम"
}Get Request
http://localhost:9090/api/states
Output
[{
"stateNameEn": "Assam",
"stateID": "S03",
"isActive": true,
"stateNameHn": "असम"
}]