BAEL-7136: Improve the companion code for the article to include multiple properties in the @PropertySource annotation (#15885)

This commit is contained in:
Oscar Mauricio Forero Carrillo
2024-02-16 19:57:57 +01:00
committed by GitHub
parent cd44988598
commit a61328e328
5 changed files with 96 additions and 3 deletions
@@ -8,8 +8,15 @@ public class ClassUsingProperty {
@Value("${baeldung.testpropertysource.one}")
private String propertyOne;
@Value("${baeldung.testpropertysource.two}")
private String propertyTwo;
public String retrievePropertyOne() {
return propertyOne;
}
public String retrievePropertyTwo() {
return propertyTwo;
}
}