1、MVC模式: model(模型,业务逻辑),view(视图层,显示,jsp),control(控制层,servlet)


表现层:UI Layer/Presentation Layer->Struts
业务逻辑层:Business Layer ->Spring
持久化层: Persistence Layer ->Hibernate

2、model1与model2的区别:

1)model1:jsp+javaBean 流程图如下:

深入浅出Struts(一)认识MVC模式
优点:架构简单,比较适合小型项目开发使用
缺点:jsp的职责不单一,既要负责展现又要负责业务逻辑,职责过重,维护起来不方便。
2)Model2:jsp+javaBean+servlet 流程图如下:
深入浅出Struts(一)认识MVC模式

 

相关文章:

  • 2019-09-15
  • 2022-02-09
  • 2021-04-28
  • 2021-07-01
  • 2021-04-08
  • 2021-12-18
  • 2022-01-23
  • 2018-06-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-13
  • 2022-12-23
  • 2021-07-04
  • 2021-05-21
  • 2020-05-31
相关资源
相似解决方案