I have a scenario where I need to read an url from my property file I have created in a server config directory of my created server i.e. C:\<path to liberty installation>\openliberty-21.0.0.11\wlp\usr\servers\TestServer\config\test.properties
. I have the property file content something like File :test.properties
downstream_service.url=https:\\abc_service.com
I need to read this url in my crated application's java class somehow and do some operation.This application I am going to deploy in the above server .
e.g.
public void myMethod(){
String serviceUrl=<some logic to get >;
}
Any suggestion would be appreciable to read this value in property file.