Skip to content

Commit

Permalink
Add application.yaml to default files
Browse files Browse the repository at this point in the history
  • Loading branch information
egoettelmann committed Jun 16, 2024
1 parent d24b52d commit 87edbd4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spring-configuration-aggregator-maven-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ To load additional default values (not defined in annotations), configuration fi
Supported file types are: `.properties`, `.yml` and `.yaml`.
By default, following files are loaded:
- `${project.baseDir}/src/main/resources/application.yml`
- `${project.baseDir}/src/main/resources/application.yaml`
- `${project.baseDir}/src/main/resources/application.properties`

The `MetadataFile` type is a string defining a file path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ private List<PropertiesFile> getPropertiesFiles() {
final List<PropertiesFile> files = new ArrayList<>();
final String resourcesFolder = this.project.getBasedir() + "/src/main/resources";
files.add(new PropertiesFile(resourcesFolder + "/application.yml"));
files.add(new PropertiesFile(resourcesFolder + "/application.yaml"));
files.add(new PropertiesFile(resourcesFolder + "/application.properties"));
return files;
}
Expand Down

0 comments on commit 87edbd4

Please sign in to comment.