Skip to content
Advertisement

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.

Advertisement

Answer

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>.m2repositoryorgspringframeworkbootspring-boot2.6.2spring-boot-2.6.2.jarMETA-INFspring-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

Advertisement