title: Unable to pick the values from Properties file and Bootstrap.yml in spring-boot
body: <p>I wanted to pick the values from the <strong>application.properties</strong> and <strong>bootstrap.yml</strong> file. When I try to do so I am getting Null on the console. Please suggest whats wrong here. </p>
  
  <p><strong>application.properties</strong> is as follows</p>
  
  <pre><code>restcall.erp.name=erp
  restcall.plant.name=plant
  restcall.apikey.name=apikey
  restcall.region.name=region
  </code></pre>
  
  <p><strong>bootstrap.yml</strong> is as follows</p>
  
  <pre><code>apigee:
    api:
      key: someKey
    url:
      item:
        itemputurl: https://someAnotherUrl
  </code></pre>
  
  <p>**Java Code **</p>
  
  <pre><code>  package com.jci.itemjob.service.mapics;
  
  import org.springframework.beans.factory.annotation.Value;
  
  
  //@RefreshScope
  @Component
  //@Configuration
  //@ComponentScan
  @PropertySources({
      @PropertySource("classpath:application.properties"),
      @PropertySource("classpath:bootstrap.yml"),
  })
  public class MapicsSendAckToApigeeFromItemJob {
  
  
      @Value("${apigee.url.item.itemputurl}")
      private String itemPUTURL;
  
      @Value("${restcall.erp.name}")
      private String erpParam;
  
      @Value("${restcall.plant.name}")
      private String plantParam;
  
      @Value("${restcall.region.name}")
      private String regionParam;
  
      @Value("${restcall.apikey.name}")
      private String apiKeyParam;
  
      @Value("${restcall.params.key.headers}")
      private String headersParam;
  
      private static final Logger LOG = LoggerFactory.getLogger(MapicsSendAckToApigeeFromItemJob.class);
  
      public CloseableHttpResponse sendResponse(String apikey, String plant, String erp, String region,
              MapicsItemApigeePut itemApigeePut) {
  
  
          try {
              MultiValueMap&lt;String, String&gt; params = new LinkedMultiValueMap&lt;String, String&gt;();
  
              LOG.info("erp-----------------" + erpParam);
              LOG.info("plant-----------------" + plantParam);
              LOG.info("apikey-----------------" + apiKeyParam);
              LOG.info("region-----------------" + regionParam);
              LOG.info("itemPUTURL-----------------" + itemPUTURL);
  
              //Other Logic
  </code></pre>
  
  <p>The Output is as below</p>
  
  <pre><code>item-job-mapics_1  | 2018-02-05 09:02:35.381  INFO 1 --- [nio-9011-exec-3] j.i.s.m.MapicsSendAckToApigeeFromItemJob : erp-----------------null
  item-job-mapics_1  | 2018-02-05 09:02:35.381  INFO 1 --- [nio-9011-exec-3] j.i.s.m.MapicsSendAckToApigeeFromItemJob : plant-----------------null
  item-job-mapics_1  | 2018-02-05 09:02:35.381  INFO 1 --- [nio-9011-exec-3] j.i.s.m.MapicsSendAckToApigeeFromItemJob : apikey-----------------null
  item-job-mapics_1  | 2018-02-05 09:02:35.381  INFO 1 --- [nio-9011-exec-3] j.i.s.m.MapicsSendAckToApigeeFromItemJob : region-----------------null
  item-job-mapics_1  | 2018-02-05 09:02:35.381  INFO 1 --- [nio-9011-exec-3] j.i.s.m.MapicsSendAckToApigeeFromItemJob : itemPUTURL-----------------null
  </code></pre>