0:00
hi welcome back In this video I'm going
0:03
to teach about the spring boot layer
0:07
architecture This is very must how the
0:11
spring layer architecture flow working
0:15
If you know this chapter well the spring
0:18
boot is very easy for you all to uh
0:22
build the application
0:25
So you can see here there
0:29
is four layers those are
0:37
repository and data source there is a
0:41
flow layers consist of spring boot layer
0:47
architecture So you can see here the
0:49
front end front end which manage the all
0:54
request what the requests coming to the
0:58
end it will be passing to the
1:04
controller front end can't passing the
1:07
data to the controller directly there
1:11
another part which is a
1:15
data front end passing via the DTO
1:21
format front end passing the data to the
1:25
controller via the DTO format what's the
1:32
explained in the practical session don't
1:35
worry about that you just keep in your
1:38
mind when the request is
1:41
coming that particular data the request
1:44
data will be passing to the controller
1:48
via the DTO format Keep in your mind
1:55
must controller receive the
1:58
data from the front end and passing the
2:07
service Service passing the data to the
2:14
What is the meaning by repository it is
2:17
nothing but managing the all the SQL
2:22
queries Insert the record enter the
2:25
record find the record all the SQL
2:28
queries managed by the repository
2:36
Repository receive the request from the
2:39
service and pass it to the data source
2:42
to add the record or delete the record
2:45
or view the record whatever if it is you
2:48
can use whatever databases you can use
2:51
MySQL or MongoDB or post whatever
2:55
database you can use it Now you can
2:59
see in between repository and data
3:03
source there is another thing which is a
3:07
entity What is the entity mean this is
3:11
the table format of the database is a
3:16
table format of the database
3:19
So repository send the
3:23
data through the entity to data
3:27
source Repository send the
3:31
through entity format to data source
3:35
This how the spring layer architecture
3:40
works Now I'm going to tell you one
3:43
example this example which is very
3:46
helpful you to learn the process of the
3:51
architecture right imagine you have a
3:54
registration form registration form
3:57
consist of many field such as a name
4:01
address phone number and email
4:05
address once you fill the registration
4:09
form registration form is a front end
4:13
once you fill Fill the registration form
4:15
There's a button which is submit Click
4:18
on the submit button The all the data
4:21
will be passing to the controller via
4:24
the DTO of via the DTO
4:31
format Receive the data from the front
4:36
end from the front end to the controller
4:40
Controller passing the data to
4:45
service Service passing the data to
4:50
repository Repository passing the
4:53
data Passing the data to the data source
4:57
via the entity format to add the data
5:06
Now you have a clear idea the reg how
5:09
the registration form flow
5:12
works Passing the data what is the uh
5:16
data we are passing through the DTO
5:17
format to the controller controller
5:20
passing to the service Service passing
5:22
to the repository repository passing the
5:25
data via the entity format to the data
5:30
data source to add the data If the data
5:33
is added successfully the message will
5:36
be passed into the front
5:43
successfully successfully
5:47
register this how the spring layer
5:51
architecture work I hope you guys you
5:54
have a clear idea about spring layer
5:59
architecture This is very much
6:02
when we are doing the industrial project
6:06
we all the things we will be see in the
6:10
session Thank you for
6:13
watching I'll see you in my next lecture