Skip to content

Commit f9af071

Browse files
committed
Started making SpringBootApplicationProperties yaml aware
1 parent 7bdf70d commit f9af071

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/sbm-support-boot/src/main/java/org/springframework/sbm/boot/properties/api/SpringBootApplicationProperties.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static SpringBootApplicationProperties newApplicationProperties(Path abso
5050
}
5151

5252
public boolean isDefaultProperties() {
53-
return getAbsolutePath().getFileName().toString().equals("application.properties");
53+
String filename = getAbsolutePath().getFileName().toString();
54+
return filename.equals("application.properties") || filename.equals("application.yaml") || filename.equals("application.yaml");
5455
}
5556

5657
}

0 commit comments

Comments
 (0)