title: Spring Cloud Config client not loading the value from config server
body: <p>I am facing below issue while I try to run my Spring Cloud Config Client:</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'DATABASE_NAME' in string value "${DATABASE_NAME}"
      at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
      at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
      at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:204
  </code></pre>
  
  <p>My dependencies in <strong>POM.xml</strong> are as below:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.3.6.RELEASE&lt;/version&gt;
      &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  
  &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-config&lt;/artifactId&gt;
              &lt;version&gt;1.1.1.RELEASE&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;
              &lt;version&gt;Brixton.SR3&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>The <strong>bootstrap.yml</strong></p>
  
  <pre><code>spring:
  application:
  name: my-config-client
  cloud:
  services:
    registrationMethod: route
  config:
    enabled: true
    uri: http://localhost:${config.port:8888}
  </code></pre>
  
  <p>The <strong>application.yml</strong> is as below:</p>
  
  <pre><code># HTTP Server
  server:
  port: 2222
  
  # Spring properties
  spring:
    profiles: 
      active: dev
  
  #Disable HTTP Basic Authentication
  security:
    basic:
      enabled: false
  </code></pre>
  
  <p>The class where I am trying to access the property is as below:</p>
  
  <pre><code>@RefreshScope
  @Component
  public class MyProperty {
  
      @Value("${DATABASE_NAME}")
      private String databaseName;
  
  
      public String getDatabaseName() {
          return databaseName;
      }
  }
  </code></pre>
  
  <p>My config server is running fine. When I use this url on browser <a href="http://localhost:8888/configserver/dev" rel="noreferrer">http://localhost:8888/configserver/dev</a>, It gives the below result:</p>
  
  <pre><code>{  
     "name":"configserver",
     "profiles":[  
        "dev"
     ],
     "label":"master",
     "version":"c991526a93fb776e37e18e138c7485d894d6ea4f",
     "propertySources":[  
        {  
           "name":"https://onestash.abc.com/scm/kapmol/microservice-config-repo.git/configserver.properties",
           "source":{  
              "DATABASE_NAME":"ABC",
              "CONVERT_USERS":"Y",
              "LRDS_JNDI_NAME":"jdbc/tds_new"
           }
        }
     ]
  }
  </code></pre>
  
  <p>I tried with all the posts who were facing this issue. But, it is not working for me. May be, I am missing some points. If anybody can provide help, it would be great.</p>
  
  <p>Thanks</p>