http://en.wikipedia.org/wiki/Spring_Framework_%28Java%29
Spring Framework
The Spring Framework is an open source application framework for the Java platform
The core features of the Spring Framework can be used by any Java application, but there are extensions for building web applications on top of the Java EE platform. Although the Spring Framework does not impose any specific programming model , it has become popular in the Java community as an alternative to, replacement for, or even addition to the Enterprise JavaBean (EJB) model.
The Spring Framework comprises several modules that provide a range of services:
- Inversion of Control container : configuration of application components and lifecycle management of Java objects
- Aspect-oriented programming : enables implementation of cross-cutting routines
- Data access : working with relational database management systems on the Java platform using JDBC and object-relational mapping tools
- Transaction management : unifies several transaction management APIs and coordinates transactions for Java objects
- Model-view-controller : a HTTP and Servlet -based framework providing hooks for extension and customization
- Remote Access framework : configurative RPC -style export and import of Java objects over networks supporting RMI , CORBA and HTTP -based protocols including web services (SOAP )
- Convention-over-configuration : a rapid application development solution for Spring-based enterprise applications is offered in the Spring Roo module
- Batch processing : a framework for high-volume processing featuring reusable functions including logging/tracing, transaction management, job processing statistics, job restart, skip, and resource management
- Authentication and authorization : configurable security processes that support a range of standards, protocols, tools and practices via the Spring Security sub-project (formerly Acegi Security System for Spring).
- Remote Management : configurative exposure and management of Java objects for local or remote configuration via JMX
- Messaging : configurative registration of message listener objects for transparent message consumption from message queues via JMS , improvement of message sending over standard JMS APIs
- Testing : support classes for writing unit tests and integration tests
Spring 是java平台的应用框架,包含以下模块以提供一系列的服务:
1. Spring框架最重要的属性是它的Inversion of Control 容器,控制反转容器提供了一系列控制和管理java对象的方法,叫做callbacks .
这个容器负责管理对象的生命周期: 创建对象,调用初始化方法,配置对象.被创建的对象也叫Beans.