BAEL-7136: Improve the companion code for the article to include multiple properties in the @PropertySource annotation (#15885)
This commit is contained in:
committed by
GitHub
parent
cd44988598
commit
a61328e328
+8
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user