微服务学习笔记——Spring Boot特性

时间:2022-12-17 15:35:37

1. 创建独立的Spring应用程序

2. 嵌入的Tomcat,无需部署WAR文件

3. 简化Maven配置

4. 自动配置Spring

5. 提供生产就绪型功能,如指标,健康检查和外部配置

6. 开箱即用,没有代码生成,也无需XML配置

Spring Boot特性理解

基于Spring的开发提供更快的入门体验

开箱即用,没有代码生成,也无需XML配置。同时也可以修改默认值来满足特定的需求。

提供了一些大型项目中常见的非功能特性,如嵌入式服务器、安全、指标,健康检测、外部配置等。

Boot并不是对Spring功能上的增强,而是提供了一种快速使用Spring的方式。

1. Create a separate Spring application

2. Embedded Tomcat, without deploying WAR files

3. Simplify Maven configuration

4. Automatically configuring Spring

5. Provide production ready functions such as indicators, health checks and external configuration.

6. Out of the box, no code generation, no XML configuration
Spring Boot Feature Understanding

Spring-based development provides faster entry experience

Out of the box, no code generation and no XML configuration are required. At the same time, the default values can be modified to meet specific needs.

It provides some common non-functional features in large projects, such as embedded server, security, indicators, health detection, external configuration and so on.

Boot is not an enhancement of Spring functionality, but a way to use Spring quickly.