文章作者:Tyan
博客:noahsnail.com
Part I. Overview of 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 theHibernate 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框架是一個輕量級的解決方案侮腹,對于構(gòu)建一個企業(yè)級應(yīng)用來說棺棵,Spring框架也是一種可能的一站式服務(wù)。Spring是模塊化的抽莱,允許你僅使用你需要的那部分功能,而不必引入其它的部分僧著。你可以在任何web框架上使用IoC容器既绩,也可以只使用Hibernate集成代碼或JDBC抽象層。Spring框架支持聲明式的業(yè)務(wù)管理丐谋,支持通過RMI或web service來遠(yuǎn)程訪問你的邏輯芍碧,并且支持多種持久化數(shù)據(jù)的方式。Spring提供了一個包含所有功能的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被設(shè)計為非侵入式的,這意味著你自己的邏輯代碼通常情況下不依賴于框架本身吏饿。在你的集成層(例如數(shù)據(jù)訪問層)踪危,將會存在一些數(shù)據(jù)訪問技術(shù)的依賴和Spring的庫。不管怎樣找岖,從你其余的代碼中分離這些依賴應(yīng)該是很容易的陨倡。
This document is a reference guide to Spring Framework features. If you have any requests, comments, or questions on this document, please post them on the user mailing list. Questions on the Framework itself should be asked on StackOverflow (see https://spring.io/questions).
這篇文檔是Spring框架功能的參考手冊。如果你有任何關(guān)于這篇文檔的要求许布、評論或問題兴革,請向用戶郵寄列表中的人發(fā)郵件。關(guān)于框架本身的問題可以在StackOverflow上提問。
1.Getting Started with 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.
這本參考手冊提供了關(guān)于Spring框架的詳細(xì)信息杂曲,它提供了關(guān)于所有功能的全面文檔庶艾,也介紹了Spring中的基本概念(例如依賴注入)的一些背景。
If you are just getting started with Spring, you may want to begin using the Spring Framework by creating a Spring Boot based application. Spring Boot provides a quick (and opinionated) way to create a production-ready Spring based application. It is based on the Spring Framework, favors convention over configuration, and is designed to get you up and running as quickly as possible.
如果你剛開始學(xué)習(xí)Spring擎勘,你可能想創(chuàng)建一個基于Spring Boot的應(yīng)用咱揍,Spring Boot提供了一個快速(和武斷的)方式來創(chuàng)建一個用于生產(chǎn)環(huán)境的基于Spring的應(yīng)用。它是基于Spring框架的棚饵,支持約定大于配置煤裙,被設(shè)計為可以快速啟動并且盡可能快的運行起來。
You can use start.spring.io to generate a basic project or follow one of the "Getting Started" guides like the Getting Started Building a RESTful Web Service one. As well as being easier to digest, these guides are very task focused, and most of them are based on Spring Boot. They also cover other projects from the Spring portfolio that you might want to consider when solving a particular problem.
你可以用start.spring.io 來生產(chǎn)一個基本的工程或遵循『Getting Started』指南中的一個噪漾,例如『Started Building a RESTful Web Service』指南硼砰。除了容易理解吸收之外,這些指南主要是基于任務(wù)的欣硼,它們中的大多數(shù)是基于Spring Boot的题翰。它們也包含了Spring的其它工程,當(dāng)解決一個特定問題時你可能會考慮它們诈胜。