how to refer to config file on remote server in @PropertySource in Spring
<p>I have a Configuration class whose members are to be set as read from a property file.</p>

<pre><code>@Configuration
@PropertySource("how to specify file on remote server")
public class DbConfiguration {

    @Value("${hic.db.machine}")
    private String machine;
}
</code></pre>

<p>I tried <code>sftp://10.6.X.XX/path/to/file</code> but it said file not found
I tried <code>file://10.6.X.XX/path/to/file</code> but it said connection refused.</p>

<p>Any idea how can i achieve this.</p>