Spring简介

一、Spring简介

Spring是一个开源框架

Spring为简化企业级应用开发而生,使用Spring可以使简单的JavaBean实现以前只有EJB才能实现的功能。

Spring是一个IOC(DI)和AOP容器框架。

具体描述Spring:

1.轻量级:Spring是非侵入性的——基于Spring开发的应用中的对象可以不依赖于Spring的API

2.依赖注入(DI——dependency injection、IOC)

3.面向切面编程(AOP——aspect oriented programming)

4.容器:Spring是一个容器,因为它包含并且管理应用对象的生命周期。

5.框架:Spring实现了使用简单的组件配置组合成一个复杂的的应用,在Spring中可以使用xml和java注解组合这些对象

6.一站式:在IOC和AOP的基础上可以整合各种企业应用的开源框架和优秀的第三方类库(实际上Spring自身也提供了展现层的SpringMVC和持久层的Spring JDBC)

二、安装Spring工具

Spring Tool Suite是一个Eclipse插件,利用该插件可以更方便的在Eclipse平台上开发基于Spring的应用。

安装方法(springsource-tool-suite-3.4.0.RELEASE-e.4.3.1-updatesite.zip):

1. Help --> Install New Software

2. Click Add

3. In dialog Add Site dialog, click Archive

4. Navigate to springsource-tool-suite-3.4.0.RELEASE-e.4.3.1-updatesite.zip and click Open

5.Click OK in the Add Site dialog will bring you back to the dialog "install"

6. Select the xxx/Spring IDE that has appeared

7. Click Next and then Finish

8. Approve the license 

9. Restart eclipse when that is asked

posted @ 2018-03-28 15:55  jsddj  阅读(157)  评论(0编辑  收藏  举报