MVC 是设计模式还是架构模式 [英] Is MVC a Design Pattern or Architectural pattern
本文介绍了MVC 是设计模式还是架构模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
According to Sun and Msdn it is a design pattern.
根据 维基百科架构模式
与设计模式相比,架构模式的规模更大.(维基百科 - 建筑模式)
In comparison to design patterns, architectural patterns are larger in scale. (Wikipedia - Architectural pattern)
或者是架构模式也有设计模式?
哪个是真的?
推荐答案
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屋!
查看全文