Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of ALL Spring Boot application properties

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.

like image 259
Johan Avatar asked Apr 02 '14 08:04

Johan


2 Answers

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"
    }

enter image description here

org.springframework.boot.context.config.Profiles

enter image description here

You can find more about configuration metadata here

like image 139
Subhrajit Sadhukhan Avatar answered Sep 18 '22 12:09

Subhrajit Sadhukhan


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.

like image 42
Santiago Wagner Avatar answered Sep 17 '22 12:09

Santiago Wagner