How to read all properties values from the source properties file in Spring-cloud-config client
<p>i have this spring-cloud-config client class and i can access the individual properties using the @Value annotation just fine. However, i am interested to know how to read ALL the properties values from a properties file without binding each of the property's key to a @Value annotation. Basically the idea is that i would like to read all the properties value from the properties file without even knowing anything about the properties defined in the file. Any idea how i can do that?</p>

<h2>Client Class</h2>

<pre><code>@EnableAutoConfiguration                                                                       
@ComponentScan                                       
@RestController             
@RefreshScope                                           
public class ConfigDemoClientApplication  
{             
    @Value("${special}")            
    String special;

    @RequestMapping("/restaurant")
    public String hello()
    {
        return "Hello " + special;
    }

    public static void main(String[] args) {
        SpringApplication.run(ConfigDemoClientApplication.class, args);
    }
}
</code></pre>

<p><strong>Sample Properties file</strong></p>

<pre><code>special: bargain!                                                                    
amount: 200                                                                           
city: New York
</code></pre>

<p>In this example, i would like to read all the 3 properties without defining a @Value annotation for each of them in my class. Is that possible?</p>

<p>Thanks for your help.</p>