1---
- Spring init---group([Link])---Artifact(Core-Spring)---SpringBoot
2.0.0
1-Add dependencies to [Link] file.
2-Create the configuration class, Instead of XML, we perform annotation-based
configuration.
3-Create the entity class
Here, we are creating an Entity/POJO (Plain Old Java Object) class.
4-Create the DAO interface
Here, we are creating the DAO interface to perform database related
operations.
5-Create the DAO interface implementation class
6-Create the service layer interface
Here, we are creating a service layer interface that acts as a bridge
between DAO and Entity classes.
7-Create the service layer implementation class
8-Create the controller class
9-Edit [Link] file
Here, we are editing the [Link] file present inside the
src/main/resources folder.
The following file contains the configuration properties.
--------------------------
Create an Angular Project
--------------------------
-->Let's create an Angular project by using the following command:
ng new Angular
-->Install Bootstrap CSS framework
npm install [email protected] --save
include the following code in the [Link] file.
@import "~bootstrap/dist/css/[Link]";
-->Install Angular-DataTable
npm install angular-datatable --save
It is required to include DataTableModule in imports array of
[Link] file.
-->Generate Components
ng g c AddStudent
ng g c StudentList
-->Let's also create a service class by using the following command: -
ng g s Student
-->Edit the [Link] file
Import Routing - Here, we are importing routing file (app-
[Link]) and include it in imports array.
Import ReactiveFormsModule - Here, we are importing ReactiveFormsModule
for reactive forms and specify it in imports array.
Import HttpModule - Here, we are importing HttpModule for server
requests and specifying it in imports array.
Register Service class - Here, we are mentioning the service class in
provider's array.
-->Edit the [Link] file
-->Edit the [Link] file
-->Create the [Link] class
ng g class Student
-->Edit the [Link] file
-->Edit the [Link] file
-->Edit the [Link] file