title: springboot 1.4.7 No qualifying bean of type 'java.lang.String'
body: <p>I seem to be getting No qualifying bean of type 'java.lang.String' exception when trying to run the project. Anyone have any idea what i'm missing? It needs to be a spring boot 1.4.7 project.</p>
  <p>final String name is what is causing the exception in FiltersContextAPIController.java</p>
  <p>Here are the 4 files i'm using</p>
  <pre><code>// pom.xml
  
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;myproject&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
      &lt;build&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/resources-local&lt;/directory&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*.yml&lt;/include&gt;
                      &lt;include&gt;**/*.xml&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;properties&gt;
          &lt;vehicle-inventory-clientapi.version&gt;5.83.0-SNAPSHOT&lt;/vehicle-inventory-clientapi.version&gt;
      &lt;/properties&gt;
  
      &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.4.7.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt;
      &lt;/parent&gt;
  
      &lt;dependencies&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;com.sm360.auto.vehicleinventory&lt;/groupId&gt;
              &lt;artifactId&gt;vehicle-inventory-clientapi&lt;/artifactId&gt;
              &lt;version&gt;${vehicle-inventory-clientapi.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  <pre><code>// FiltersContextAPIController.java
  
  package com.sm360.auto.widgetsupplier;
  
  import org.springframework.boot.*;
  import org.springframework.boot.autoconfigure.*;
  import org.springframework.web.bind.annotation.*;
  import org.springframework.beans.factory.annotation.Autowired;
  // import com.sm360.auto.vehicleinventory.clientapi.service.ColorAPIService;
  
  @RestController
  // @ComponentScan
  @EnableAutoConfiguration
  public class FiltersContextAPIController extends AbstractFiltersContextAPIController {
  
      @Autowired
      public FiltersContextAPIController(final String name) {
          super(name);
      }
  
      @RequestMapping(&quot;/&quot;)
      String home() {
          return &quot;Hello World!&quot;;
      }
  
      public static void main(String[] args) throws Exception {
          SpringApplication.run(FiltersContextAPIController.class, args);
      }
  
  }
  </code></pre>
  <pre><code>// AbstractFiltersContextAPIController.java
  
  package com.sm360.auto.widgetsupplier;
  
  // import com.sm360.auto.vehicleinventory.clientapi.service.ColorAPIService;
  import org.springframework.beans.factory.annotation.Value;
  
  import java.util.Locale;
  
  public abstract class AbstractFiltersContextAPIController {
  
      // private ColorAPIService colorAPIService;
      private String name = &quot;Ron&quot;;
  
      @Value(&quot;${beta.inventory.listing:false}&quot;)
      private boolean isBetaInventoryListing;
  
      public AbstractFiltersContextAPIController(final String name) {
          // this.colorAPIService = colorAPIService;
          // this.colorAPIService.getExteriorColor(1, Locale.CANADA);
          this.name = name;
      }
  
      protected String getFilters() {
          return &quot;&quot;;
      }
  }
  </code></pre>
  <p>and a resources-local folder with application.yml file</p>
  <pre><code>// application.yml
  
  security.basic.enabled: false
  </code></pre>