title: How does Spring load the classpath?
body: <p>I have a Spring Boot Web application XX, which in turn is using a library, YY,  built using Spring. I have declared YY library details in XX's POM.</p>
  
  <p>In my YY library I have a Cinfig class annotated with following : </p>
  
  <pre><code>    @Configuration
      @PropertySource({ "classpath:abc.properties" })
      class YYLibraryConfig {
  </code></pre>
  
  <p>I have declared abc.properties in src/main/resources of YY library. Now when I am running Spring Boot application XX , I am getting the following error :</p>
  
  <pre><code>InvocationTargetException: Failed to process import candidates for configuration class [com.sample.YYLibraryConfig]; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'abc.properties' in string value "classpath:${abc.properties}"  
  </code></pre>