第 9 章 reference
9.1. MicroProfile 配置参考 复制链接链接已复制到粘贴板!
9.1.1. 默认 MicroProfile 配置属性 复制链接链接已复制到粘贴板!
MicroProfile 配置规范 默认定义三种 ConfigSource。
ConfigSources 根据序号进行排序。如果以后的部署必须覆盖配置,则在较高序 ConfigSource 前覆盖了低序 ConfigSource。
ConfigSource | ordinal |
|---|---|
| 系统属性 |
|
| 环境变量 |
|
|
类路径上找到的属性文件 |
|
9.1.2. MicroProfile Config SmallRye ConfigSources 复制链接链接已复制到粘贴板!
The microprofile-config-smallrye 项目定义了除默认的 MicroProfile Config ConfigSources 之外还可使用的更多 ConfigSource。
ConfigSource | ordinal |
|---|---|
|
子系统 |
|
|
来自 |
|
|
来自类的 |
|
没有为这些 ConfigSources 指定显式的序数。它们继承 MicroProfile 配置规范中找到的默认 ordinal 值。