1.Spring Overview
What is 1.1.Spring
Spring
: Spring is a layered JavaSE / EE application-Stack Full 轻量级开源框架
, which 以IOC(控制反转)和AOP(面向切面编程)为内核
provides the presentation layer and SpringMVC Spring JDBC and transaction management services layer, and many other enterprise applications technology persistence layer, but also the integration of many well-known open source world tripartite frameworks and libraries, has become the largest enterprise applications using open source frameworks JavaEE
1.2.Spring features
Spring is called EE development 一站式框架
, there are solutions for each layer EE development:
- WEB layer: SpringMVC
- Service Layer: Spring's Bean management, Spring declarative transaction
- DAO layer: Spring's JDBC templates, Spring's ORM module
1.3. Spring Architecture
1.4.Spring Development Kit
- docs: Spring in the development of norms and API
- libs: Spring into the jar and the development of source code
- schema: Constraints Spring configuration file
IOC's entry 2.Spring
2.1. Coupling and decoupling between programs
耦合
: Simply understood as the dependencies between procedures, including类之间的依赖
and方法间的依赖
解耦合
: Reduce the dependencies between procedures, dependencies between program can not be completely eliminated but can be reduced as much as possible. The actual development should do编译期间不依赖,运行期间才依赖
2.2.Spring of IOC
IOC
: