Joh*_*han 6 java spring spring-boot
使用Spring Boot时是否有一个application.yml
或application.properties
文件中可用的所有属性的列表?我似乎只找到了常见的.
小智 4
正如前面的答案正确指出的那样,您可能会发现此处列出的“常见”应用程序属性。
但如果您需要所有属性的完整列表,您可以参考spring-configuration-metadata.json
。其中包含属性的完整列表,以及数据类型、描述和引入它们的源文件。
Spring 项目的元数据文件位于META-INF/spring-configuration-metadata.json.
.
例如:spring.profiles.include
可以在里面找到C:\Users\<USER_NAME>\.m2\repository\org\springframework\boot\spring-boot\2.6.2\spring-boot-2.6.2.jar\META-INF\spring-configuration-metadata.json
{
"name": "spring.profiles.include",
"type": "java.util.List<java.lang.String>",
"description": "Unconditionally activate the specified comma-separated list of profiles (or list of profiles if using YAML).",
"sourceType": "org.springframework.boot.context.config.Profiles"
}
Run Code Online (Sandbox Code Playgroud)
org.springframework.boot.context.config.Profiles
Run Code Online (Sandbox Code Playgroud)
您可以在此处找到有关配置元数据的更多信息
归档时间: |
|
查看次数: |
1595 次 |
最近记录: |