title: Spring boot Get properties from consul server
body: <p>I have a spring boot application and I would like to get properties that I have on a consul agent.</p>
  
  <pre><code>@EnableDiscoveryClient
  @SpringBootApplication(scanBasePackages={"com.commons"})
  public class MainAppProxy   implements CommandLineRunner {      
      @Value("${proxy.endpoint}")
      private String endpointAddress;
  </code></pre>
  
  <p>My application.properties is under src/main/resources</p>
  
  <pre><code>spring.application.name=SOAPProxy
  spring.cloud.consul.host=http://10.0.1.241
  spring.cloud.consul.port=8500
  spring.cloud.config.discovery.enabled=false
  </code></pre>
  
  <p>in pom.xml I have the following config (short version)</p>
  
  <pre><code>            &lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;
              &lt;version&gt;Camden.SR5&lt;/version&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt;
  </code></pre>
  
  <p>The properties are stored on consul in this format:
  Business/SOAPProxy/proxy.endpoint</p>
  
  <p>When the application boots, it seems that it finds consul but it cannot get the values as it could before trying consul @Value("${proxy.endpoint}")
  How can I get the properties on consul?</p>