0% found this document useful (0 votes)
13 views5 pages

Springboot MVC Pattern

Uploaded by

gokulpradeep1908
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views5 pages

Springboot MVC Pattern

Uploaded by

gokulpradeep1908
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1. Client(Browser) requests for a Resource in the web Application.

2. The Spring front controller i.e, DispatcherServlet first receives the request.

3. DispatcherServlet consults the HandlerMapping to identify the particular


1. Client(Browser) requests for a Resource in the web Application.

2. The Spring front controller i.e, DispatcherServlet first receives the request.

3. DispatcherServlet consults the HandlerMapping to identify the particular


controller for the given URL.

4. HandlerMapping identifies the controller for the given request and sends to
the DispatcherServlet.
5. DispatcherServlet will call the handleRequest(request,response) method on
Controller. A Controller is developed by writing a simple java class which
implements Controller interface or extends its adapter class.

6. Controller will call the business method according to business requirement.

7. Service class will call the DAO class method for business data.

8. DAO interacts with DB to get data.

9. DAO returns same data to service.

[Link] data will be processed according to business requirement and return


results to Controller.

[Link] Controller returns the Model and View in the form of Object back to the
Controller i.e, DispatcherServlet.

[Link] front controller i.e, DispatcherServlet then tries to resolve the actual View
which may be JSP,velocity or Free Marker by consulting the View Resolver
Object.

[Link] selected view is rendred back to the DispatcherServlet.

[Link] the particular view with the model.


[Link] executes and returns HTML output to the DispatcherServlet.

[Link] will sends the output to the Browser.

You might also like