传统的 SSM/SSH 框架组合配置繁琐臃肿,不同项目有很多重复、模板化的配置,严重降低了 Java 工程师的开发效率,而 Spring Boot 可以轻松创建基于 Spring 的、可以独立运行的、生产级的应用程序。通过对 Spring 家族和一些第三方库提供一系列自动化配置的 Starter,来使得开发快速搭建一个基于 Spring 的应用程序。
Spring Boot 让日益臃肿的 Java 代码又重回简洁。在配合 Spring Cloud 使用时,还可以发挥更大的威力。
Spring Boot 主要有如下特点:
- 为 Spring 开发提供一个更快、更广泛的入门体验。
- 开箱即用,远离繁琐的配置。
- 提供了一系列大型项目通用的非业务性功能,例如:内嵌服务器、安全管理、运行数据监控、运行状况检查和外部化配置等。
- 绝对没有代码生成,也不需要XML配置。
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.
Spring Boot 使得创建独立的、生产级的基于 Spring 的应用程序变得容易,您可以 “只运行” 这些应用程序。
We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need minimal Spring configuration.
我们对Spring平台和第三方库持固执己见的态度,因此您可以从最小的麻烦开始。大多数Spring Boot应用程序需要最少的Spring配置。
If you’re looking for information about a specific version, or instructions about how to upgrade from an earlier release, check out the project release notes section on our wiki.
如果您正在寻找有关特定版本的信息,或有关如何从早期版本升级的说明,请查看项目发布说明。
Features
- Create stand-alone Spring applications
- Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
- Provide opinionated ‘starter’ dependencies to simplify your build configuration
- Automatically configure Spring and 3rd party libraries whenever possible
- Provide production-ready features such as metrics, health checks, and externalized configuration
Absolutely no code generation and no requirement for XML configuration
创建独立的Spring应用程序
- 直接嵌入Tomcat、Jetty或Undertow (无需部署WAR文件)
- 提供固执己见的 “开始” 依赖关系,以简化您的构建配置
- 尽可能自动配置Spring和第三方库
- 提供可用于生产的功能,如指标、运行状况检查和外部化配置
- 绝对没有代码生成,也不需要XML配置