- This a sample of Spring Boot application for REST CRUD service.
- This sample does not use any JPA/Hibernate implementation.
- Installed Java JDK 1.8.x
- Installed MySQL 5.x.x and create a local database connection.
- Installed Apache Maven 3.3.x
- (Optional) Installed any preferred IDE. Recommended to use Eclipse 4.7.x (Oxygen).
To view available request API :
- In IDE, run
MainApplication.java
and open this link in a new browserhttp://localhost:8080/swagger-ui.html
- It will display list of requests in Swagger UI.
To run unit test :
- In IDE, run JUnit Test for this class
ControllerTest
To run unit testing with reporting
- Open CMD in project directory, run
surefire-report:report site -DgenerateReports=false