-
Notifications
You must be signed in to change notification settings - Fork 1
Home
SunilOS edited this page Mar 14, 2019
·
13 revisions
This contains SpringBoot application example. It contains REST controller that communicates with MySQL with help of JPA.
- Spring Boot
- JPA
- Hikari DataSource
- MySQL
- Maven
- Eclipse Neon
- Tomcat default port 8080
- com.sunilos.springboot.SOSApp.java It starts the application.
- application.properties It contains database driver and hibernate parameters.
Use Postman to test following REST APIs:
- http://localhost:8080/Marksheet : displays health of bean an says fit and fine
- http://localhost:8080/Marksheet/get/1 : returns marksheet of ID 1
- http://localhost:8080/Marksheet/search : returns list of marksheets
- http://localhost:8080/Marksheet/rollno/A1 : returns Marksheet of given A1 roll number
- http://localhost:8080/Marksheet/meritlist : returns merit list of students
- http://localhost:8080/Marksheet/delete/1 : deletes marksheet of given id
- http://localhost:8080/Marksheet/save : adds or updates a markhseet
Click here to download Postman
See #Import and Run project in Eclipse Read http://www.sunilos.com/Home/java-development-environment-setup/import-an-eclipse-project#TOC-Import-Eclipse-Project-from-GitHub