Spring Boot2 官方参考文档 ——Application 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 核心配置

KeyDefault描述

在这里插入图片描述

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 测试配置

在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值