Spring 4.0 之框架综述

Part I. Spring Framework 综述

The Spring Framework is a lightweight solution and a potential one-stop-shop for building your enterprise-ready applications. However, Spring is modular, allowing you to use only those parts that you need, without having to bring in the rest. You can use the IoC container, with any web framework on top, but you can also use only the Hibernate integration code or the JDBC abstraction layer. The Spring Framework supports declarative transaction management, remote access to your logic through RMI or web services, and various options for persisting your data. It offers a full-featured MVC framework, and enables you to integrate AOP transparently into your software.

Spring Framework 是一个轻量级的解决方案和一个潜在的一站式为您构建企业级应用程序. 尽管这样, Spring 是模块化的, 允许你只使用你需要的一部分, 无需引用其余。你可以使用IoC container, 配合一些优秀的web framework, 并且您当然可以集成Hibernate 或者 JDBC 抽象层。Spring Framework支持声明式事务管理,可以通过RMI或者WebService远程调用你的逻辑,支持通过各种配置项持久化数据。它提供功能全面的 MVC 框架, 能够透明地集成AOP到您的软件系统中。

Spring is designed to be non-intrusive, meaning that your domain logic code generally has no dependencies on the framework itself. In your integration layer (such as the data access layer), some dependencies on the data access technology and the Spring libraries will exist. However, it should be easy to isolate these dependencies from the rest of your code base.

Spring采用非侵入式(non-intrusive)设计,意味着你的业务逻辑代码基本上不用依赖于框架本身。在你的集成层 (例如数据访问层),数据访问技术和Spring之间存在一些依赖关系,尽管这样,从你的代码库隔绝这些依赖关系是非常容易的。

这是一份针对于Spring框架特色的参考指南。如果你对文档有一些请求、意见、疑问,请发送Email给我。个人能力有限,还请不吝赐教。(zhqguo85@gmail.com)

1. 准备开始使用Spring

This reference guide provides detailed information about the Spring Framework. It provides comprehensive documentation for all features, as well as some background about the underlying concepts (such as "Dependency Injection") that Spring has embraced.

本参考指南提供Spring Framework详细的介绍.它提供了Spring所有特点的全方位介绍, 就同Spring已经被接受的基本概念(例如依赖注入(Dependency Injection))一样。

If you are just getting started with Spring, you may want to begin with the lighter "Getting Started" guides that are available from http://spring.io. As well as being easier to digest, these guide are very task focused. They also cover other projects from the Spring portfolio that you might want to consider when solving a particular problem.

如果你刚好准备使用Spring,你可以获取向导从Spring官网 http://spring.io 。这些向导出了一些非常关注的任务。它们还涵盖了你可能要解决一个特定的问题时,要考虑Spring的其他项目。

Getting Started Building a RESTful Web Service would be an excellent first choice to get your feet wet.

入门构建RESTful Web服务是一个构建让你满意应用的第一选择。

相关推荐