Spring的优势

2018-12-18  本文已影响0人  SummerDreamEve

What is the benefit of using the spring framework?

 One is IoC which is the inversion of control and other is DI which is dependency injection. 

MVC Framework: Spring Framework is an MVC web application framework. This framework is configurable via interfaces and accommodates multiple view technologies.

Model - Represents the data of the application. This matches up with the type of data a web application is dealing with, such as a user, video, picture or comment. Changes made to the model notify any subscribed parties within the application.

View - The user interface of the application. Most frameworks treat views as a thin adapter that sits just on top of the DOM. The view observes a model and updates itself should it change in any way.

Controller - Used to handle any form of input such as clicks or browser events. It’s the controller’s job to update the model when necessary (i.e. if a user changes their name).

上一篇 下一篇

猜你喜欢

热点阅读