| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
1. Clone the application
https://github.com/givanthak/spring-boot-rest-api-tutorial.git2. Create Mysql database
create database user_database3. Change mysql username and password as per your installation
open src/main/resources/application.properties
change spring.datasource.username and spring.datasource.password as per your mysql installation
4. Build and run the app using maven
mvn package
java -jar target/spring-boot-rest-api-tutorial-0.0.1-SNAPSHOT.jar
Alternatively, you can run the app without packaging it using -
mvn spring-boot:runThe app will start running at http://localhost:8080.
The app defines following CRUD APIs.
GET /api/v1/users
POST /api/v1/users
GET /api/v1/users/{userId}
PUT /api/v1/users/{userId}
DELETE /api/v1/users/{userId}
You can find the tutorial for this application on my blog -
| Back | FazBrowse Home | New Git URL |