Restful Api with SpringFramework
Steps to reproduce the code
- Modify the pom.xml file as in current file
- Update Maven project
- Create a xml file named spring-servlet.xml in /WEB-INF/ folder
- Create bean, controller, DAO and Service classes
- Do maven build (clean, install)
- Right click on project -> run as -> run on server
To test API, use Postman or similar application. Sample of API end points POST http://localhost:8080/employee/addEmployee