application properties

Settings a Spring Boot application reads at startup from files such as application.properties, environment variables and command-line arguments.

In more detail

Properties turn deployment choices into input rather than constants in source code. Later sources override earlier ones, so an environment variable can change a value from a file without rebuilding. Group related properties into a typed class with @ConfigurationProperties.

Examples

service.name=inventory
SERVICE_TIMEOUTSECONDS=5 overrides service.timeoutSeconds

Related terms

Taught in

References