Skip to content

Commit be428ef

Browse files
committed
Document the need for configuration files to have a file extension
Closes gh-22278
1 parent 1b48daf commit be428ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ They must be defined as an environment property (typically an OS environment var
490490

491491
If `spring.config.location` contains directories (as opposed to files), they should end in `/` (and, at runtime, be appended with the names generated from `spring.config.name` before being loaded, including profile-specific file names).
492492
Files specified in `spring.config.location` are used as-is, with no support for profile-specific variants, and are overridden by any profile-specific properties.
493+
Whether specified directly or contained in a directory, configuration files must include a file extension in their name.
494+
Typical extensions that are supported out-of-the-box are `.properties`, `.yaml`, and `.yml`.
493495

494496
Config locations are searched in reverse order.
495497
By default, the configured locations are `classpath:/,classpath:/config/,file:./,file:./config/`.

0 commit comments

Comments
 (0)