Spring MVC framework of introduction and understanding


Spring MVC framework

(1), introduction

      MVC is the Model - View - Controller (Model-View-Controller) architecture model of development model, to achieve a complete separation of model and view, a clear structure.


(2), be appreciated

      1, Model (model) is a portion for processing business logic. So when we developed the business logic in the Model layer, which can improve the business logic multiplexing, the code will be a corresponding reduction in the amount. For database transaction mechanism is often there, in order to adapt to such changes, the designers will model layer is subdivided into two layers, service layer (Service) and data access layer (DAO)

      2, View (View) is used to return back Beand Model layer object display data processing section to be processed by the parser view, the view is generally created based on the model data.

      3, Controller (Controller) is a part for processing user interaction. The controller is responsible for reading data from the client request Request pass over, control a user input, and transmit data model Model.



Published 51 original articles · won praise 11 · views 6095

Guess you like

Origin blog.csdn.net/weixin_42140261/article/details/95192584