第一部分:spring框架概述

来源:互联网 发布:画结构式的软件 编辑:程序博客网 时间:2024/06/04 21:17
             **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 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框架是一个轻量级的解决方案和一个潜在的一站试开发你的企业准备应用。但是,spring是模块化,允许你去使用仅仅你需要的部分,不需要去包括其它部分。你可以使用IOC容器,或者任何web框架在spring上,但是你也可以仅仅使用hibernate集成代码或者JDBC抽象层. spring框架支持声明式事物管理,通过RMI或远程访问您的逻辑Web服务,和各种持久化数据的选择。它提供一个功能全面的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被设计为无侵入性,意味着你的逻辑代码一般没有对框架的依赖。在集成层(例如数据连接层),一些依赖在数据接入技术和spring库将存在。但是,它应该是很容易将这些依赖项与代码库的其余部分隔离开来。
      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框架特性的参考指南。如果你对本文档有任何问题,评论,或者问题,请联系作者邮箱,对于框架的问题可以在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.
      1.开始spring
      这本参考文档提供了关于spring框架的详细信息,它提供了对所有特性的综合文档,以及一些有关基本概念的背景知识(例如:依赖注入)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.
      如果你是刚开始接触spring,你或许迫不及待的想用spring框架创建一个基于spring的应用,spring Boot提供了一个快速的(并且可选的)方式去创建一个基于spring生产准备的应用。它基于spring框架,偏好约定优于配置,它的目的是让你尽快起来并运行起来。
       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生成一个基本的项目或遵循一个“开始”指导开始构建一个REST风格的Web服务,而且更容易消化,这些指南是非常注重专业的,并且大多的都是基于Spring Boot.它们也涵盖了其他的项目,在解决某个特定问题时可能需要考虑的Spring组合。