Is there a list of ALL properties that are available in a application.yml
or application.properties
file when using Spring Boot? I only seem to find the common ones.
As rightly pointed out by earlier answers you may find the "common" application properties listed here.
But incase you need the comprehensive list of all properties, you may refer to spring-configuration-metadata.json
. This has the full list of properties, along with the datatypes, description and the source file from where they are introduced.
The metadata files for spring projects are located inside jars under META-INF/spring-configuration-metadata.json.
.
For example: spring.profiles.include
may be found inside 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"
}
org.springframework.boot.context.config.Profiles
You can find more about configuration metadata here
I think I'm a little late to the party, but a list can be found here: https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#common-application-properties-core
Of course, this is only a list of common properties. You must keep in mind that more properties may come with additional jar files that are added to your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With