By default properties will be loaded from ‘application.properties’ and/or ‘application.yml’ files in the following locations:
The list is ordered by precedence (properties defined in locations higher in the list override those defined in lower locations).
Alternative search locations and names can be specified using
Additional files will also be loaded based on active profiles. For example if a ‘web’ profile is active ‘application-web.properties’ and ‘application-web.yml’ will be considered.
The ‘spring.config.name’ property can be used to specify an alternative name to load and the ‘spring.config.location’ property can be used to specify alternative search locations or specific files.