PFB the link reference for basic spring boot projects and concepts,
1)Open 'Spring Tool Suite' tool
2)Create 'Spring Starter Project'
For Reference:
3)Project structure looks like
Careful on creating package. Please double check you created project name with this images contains project names.
Ex:
com.EmpPro (default project - auto created)
Ex:
com.EmpPro (default project - auto created)
com.EmpPro.Controller
com.EmpPro.Service
com.EmpPro.Service
com.EmpPro.Repository
com.EmpPro.Model
com.EmpPro.Model.Request
com.EmpPro.Model.Response
com.EmpPro.Model.Dto
7)This project explains below using Spring Boot, Restful-web-service and JPA,
- Fetch all data from database.
- Fetch single data from database against request contains single data.
- Fetch multiple data from database against request contains multiple data.
- Save a single data in database against request contains single data.
- Save a multiple data in database against request contains multiple data.
8)Use the below link to download the source code,
Previous session: Click to know - Sample spring boot project
Context page: Click here
Home page: Click here
Thanks, I hope you enjoyed this session !!!.
-Somasundar Kanakaraj