MVC是设计模式还是建筑模式 [英] Is MVC a Design Pattern or Architectural pattern
本文介绍了MVC是设计模式还是建筑模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
According to Sun and Msdn it is a design pattern.
根据<一个href =http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller =noreferrer>维基百科它是一种架构模式
与设计模式相比,架构模式规模更大。
(维基百科 - 建筑模式)
或者它是一种也有设计模式的建筑模式?
哪一个是真的?
推荐答案
MVC更是一种架构模式,但不是完整的应用程序。 MVC主要涉及应用程序的UI /交互层。您仍然需要业务逻辑层,也可能需要一些服务层和数据访问层。也就是说,如果你进入n层的方法。
MVC is more of an architectural pattern, but not for complete application. MVC mostly relates to the UI / interaction layer of an application. You're still going to need business logic layer, maybe some service layer and data access layer. That is, if you're into n-tier approach.
这篇关于MVC是设计模式还是建筑模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文