Skip to content
SunilOS edited this page Mar 14, 2019 · 13 revisions

About SOSSpringBoot Repository

This contains SpringBoot application example. It contains REST controller that communicates with MySQL with help of JPA.

Technologies Used

  1. Spring Boot
  2. JPA
  3. Hikari DataSource
  4. MySQL
  5. Maven
  6. Eclipse Neon
  7. Tomcat default port 8080

Configuration files

  1. com.sunilos.springboot.SOSApp.java It starts the application.
  2. application.properties It contains database driver and hibernate parameters.

Test program

Use Postman to test following REST APIs:

  1. http://localhost:8080/Marksheet : displays health of bean an says fit and fine
  2. http://localhost:8080/Marksheet/get/1 : returns marksheet of ID 1
  3. http://localhost:8080/Marksheet/search : returns list of marksheets
  4. http://localhost:8080/Marksheet/rollno/A1 : returns Marksheet of given A1 roll number
  5. http://localhost:8080/Marksheet/meritlist : returns merit list of students
  6. http://localhost:8080/Marksheet/delete/1 : deletes marksheet of given id
  7. http://localhost:8080/Marksheet/save : adds or updates a markhseet

Click here to download Postman

Configure and Run Project

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

Clone this wiki locally