软件系统设计与体系结构(spring).pdf

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
软件系统设计与体系结构(spring)

软件系统设计与体系架构(J2EE) 第5章:Spring 之旅 杭州电子科技大学 Fall, 2014 Spring之旅  Spring 概述  Spring IoC  Spring MVC Spring概述 什么是Spring框架 (Spring Framework) Java平台上的一个开源应用框架 实现了IoC (Inversion of Control)模式 采用分层架构,允许选择使用哪一个组件 为J2EE应用程序开发提供集成的框架 / Spring概述 Spring概述 为什么采用Spring框架 (Spring Framework) 解决企业应用程序开发复杂性 通过程序对象的松散耦合(Loose coupling), 使得整个应用程序可以在架构与维护上得到相当 程度的简化 Dont Reinvent the Wheel Spring概述 Spring框架的历史 来源  Rod Johnson :《Expert One-On-One Java EE Design and Development》 Spring概述 Spring框架的历史 2003年2月  在著名的开源社区 “Sourceforge”上,一批自愿拓展 Spring框架的程序开发员组成了团队,构建了一个项目 2004年3月发布了第一个版本(1.0) 2007年底发布:Spring 2.5 2009年底发布:Spring 3.0 当前版本:Spring 3.2.2 Spring概述  The mission of Spring J2EE should be easier to use It is best to program to interfaces, rather than classes. JavaBeans offer a great way of configuring applications. OO design is more important than any implementation technology, such as J2EE. Checked exceptions are overused in Java. A platform shouldnt force you to catch exceptions youre unlikely to be able to recover from. Testability is essential, and a platform such as Spring should help make your code easier to test. Spring概述  / Spring概述  Spring框架的七个模块 核心容器 Spring 上下文 Spring AOP Spring DAO Spring ORM Spring Web 模块 Spring MVC 框架 Spring概述  IoC(Inversion of Control):控制反转  也可叫做DI(Dependency Injection) :依赖注入 不直接创建对象,但是描述创建它们的方式  在代码中不直接与对象和服务连接,但在配置文件中描述哪一个 组件需要哪一项服务  容器(在Spring框架中是IoC容器)负责将这些联系在一起 Hollywood Principle :

文档评论(0)

haodoc + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档