Spring Boot2 官方参考文档 ——Application Properties 应用配置
- 导读前言
- Common Application properties 一般配置
- 1.Core Properties 核心配置
- 2.Cache Properties 缓存配置
- 3. Mail Properties 邮件配置
- 4.JSON Properties JSON配置
- 5. Data Properties 数据配置
- 6. Transaction Properties 事务配置
- 7.Data Migration Properties 数据库迁移配置
- 8.Integration Properties 系统集成配置
- 9.Web Properties Web应用配置
- 10. Templating Properties 模板配置
- 11. Server Properties 服务配置
- 12. Secruity Properties 安全配置
- 13. RSocket Properties 通信协议RSocket 配置
- 14. Actuator Properties 监视器配置
- 15. Devtools Properties 构建工具配置
- 16.Testing Properties 测试配置
导读前言
SpringBoot2 官方配置文档地址: https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#common-application-properties
本博客来自于官网的手动汉化, 中英文对照
Various properties can be specified inside your application.properties file, inside your application.yml file, or as command line switches. This appendix provides a list of common Spring Boot properties and references to the underlying classes that consume them.
你可以将各种配置文件配置到 .properties 或者 .yml 文件 , 本附录提供了一个常见Spring引导属性列表,以及对使用这些属性的底层类的引用。
SpringBoot 提供了各种配置转换机制和值格式化 , SpringBoot 的属性可以来自于ClassPath 类路径下的Jar 包文件, 你不必考虑详细的列表, 并且你也可以自定义配置。
Common Application properties 一般配置
以下内容为 Spring Boot2 应用的一般配置列表和配置属性
1.Core Properties 核心配置
Key | Default | 描述 |
---|