1

从 Spring 到 Spring Boot

 2 years ago
source link: https://www.techug.com/post/from-spring-to-spring-boot.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

从 Spring 到 Spring Boot

2

Spring Boot 的出发点:

Spring 臃肿以后的必然选择。

一切都是为了简化。

– 让开发变简单。 

– 让配置变简单。 

– 让运行变简单。

怎么变简单?——整合

就像是 SSH、SSM,国产的 SpringSide

基于什么变简单:约定大于配置。

Spring Boot 如何做到简化

为什么能做到简化:

1、Spring 本身技术的成熟与完善,各方面第三方组件的成熟集成。

2、Spring 团队在去 web 容器化等方面的努力。

3、基于 MAVEN 与 POM 的 Java 生态体系,整合 POM 模板成为可能。

4、避免大量 maven 导入和各种版本冲突。

Spring Boot 是 Spring 的一套快速配置脚手架,关注于自动配置,配置驱动。

什么是 Spring Boot

Spring Boot 使创建独立运行、生产级别的 Spring 应用变得容易,你可以直接运行它。我们对

Spring 平台和第三方库采用限定性视角,以此让大家能在最小的成本下上手。大部分 Spring 

Boot 应用仅仅需要最少量的配置。

功能特性:

1. 创建独立运行的 Spring 应用

2. 直接嵌入 Tomcat 或 Jetty,Undertow,无需部署 WAR 包。

3. 提供限定性的 starter 依赖简化配置(就是脚手架)。

4. 在必要时自动化配置 Spring 和其他三方依赖库。

5. 提供生产 production-ready 特性,例如指标度量,健康检查,外部配置等。

6. 完全零代码生产和不需要 XML 配置。

本文文字及图片出自 InfoQ


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK