adspace


Explain the model 1 and model 2 architecture of spring framework.

Answer Posted / Vijay Verma

Model 1 (Default Model) in Spring Framework follows a request-driven architecture, where the controller is responsible for populating the model object using data from the request. The view remains unaware of the model. On the other hand, Model 2 (Handled Request or MVC Model) separates the application into three components: Controller, Service/Model, and View. In this architecture, the Controller retrieves data from the Model, then populates the Model attributes that are passed to the View for rendering.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lazy class?

490


What is difference between @controller and @restcontroller in spring?

556


How can you inject java collection in spring?

518