I have this application.properties
:
url.up=${url:http://localhost:8080/upload}
And I want to extract the url "http://localhost:8080/upload"
. How can I extract it?
I tried something like this, but the url is null:
String url = config.getPropertyValue("url");
Where getPropertyValue
:
public String getPropertyValue(String propertyKey) {
return properties.getProperty(propertyKey);
}