第 14 章 参考
14.1. MicroProfile Config 参考 复制链接链接已复制到粘贴板!
14.1.1. 默认 MicroProfile Config 属性 复制链接链接已复制到粘贴板!
MicroProfile Config 规范默认定义三个 ConfigSources。
ConfigSources 根据常规数字进行排序。如果需要为后续部署覆盖配置,则在较高情况的 ConfigSource 之前会覆盖较低或dinal ConfigSource。
ConfigSource | ordinal |
|---|---|
| 系统属性 |
|
| 环境变量 |
|
|
classpath 上找到的属性文件 |
|
14.1.2. MicroProfile Config SmallRye ConfigSources 复制链接链接已复制到粘贴板!
microprofile-config-smallrye 项目定义了除默认的 MicroProfile ConfigSources 外,您还可以使用的更多 ConfigSources。
ConfigSource | ordinal |
|---|---|
|
subsystem 中的 |
|
|
目录中的 |
|
|
来自类的 |
|
没有为这些 ConfigSources 指定明确的 ordinal。它们继承 MicroProfile 配置规范中找到的默认值。