The Spring Framework is a Java platform that provides comprehensive infrastructure support for developing Java applications. Spring handles the infrastructure so you can focus on your application.
Spring Framework
是一个Java平台框架
,它为开发Java
应用程序的全面的基础架构支持。 Spring
处理基础架构,以便你可以专注于应用程序。
Spring enables you to build applications from "plain old Java objects" (POJOs) and to apply enterprise services non-invasively to POJOs. This capability applies to the Java SE programming model and to full and partial Java EE.
Spring
使你能够从“普通旧Java
对象”(POJO
)构建应用程序,并将企业服务非侵入性地应用于POJO
。 此功能适用于Java SE编程模型
和完整和部分Java EE
。
Examples of how you, as an application developer, can benefit from the Spring platform:
- Make a Java method execute in a database transaction without having to deal with transaction APIs.
- Make a local Java method a remote procedure without having to deal with remote APIs.
- Make a local Java method a management operation without having to deal with JMX APIs.
- Make a local Java method a message handler without having to deal with JMS APIs.
作为应用程序开发人员,你可以如何从Spring
平台中受益的示例:
- 在数据库事务中执行Java方法,而不必处理事务
API
。 - 使本地Java方法成为远程过程,而不必处理远程
API
。(意思就是无须管相关的远程调用api,Spring已经封装好了,你自己只需要专注自己的逻辑即可,下同,不再解释)
- 使本地Java方法成为管理操作,而不必处理
JMX API
。 - 使本地Java方法成为消息处理程序,而不必处理
JMS API
。