I have following property url.xyz in properties file which will be read in spring applicationcontext.xml file
url.xyz=https://test.com/?name=sample&id=123
I want to further add headers to it for example
'cache-control:no cache'
'content type:text/plain'
Above url returns a password. I want to create a bean in Spring which will invoke url above with headers and return the password
<bean id=pwd" class="java.lang.String">
????
</bean>
how can this be acheived?