title: spring cloud config searchPaths
body: <p>I'm looking at implementing the 12factor approach to externalising config via Spring Cloud Config but am not able to get the wildcards working using searchPaths as I expected.</p>
  
  <p>The documentation <a href="http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_spring_cloud_config_server" rel="noreferrer">http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_spring_cloud_config_server</a> mentions that wildcards  {application}, {label}, {profile} can be used within the searchPaths variable so that <em>"you can segregate the directories in the path, and choose a strategy that makes sense for you (e.g. sub-directory per application, or sub-directory per profile).</em>"</p>
  
  <p>I'm looking to have a single git repo, with either subdirectories per profile (and then per app, or subdirectory per app (then by profile).</p>
  
  <p>e.g.</p>
  
  <pre><code>    spring:
        cloud:
          config:
            server:
              git:
                uri: https://stash.xxx.com.au/scm/xxx/config
                searchPaths: {application}
  or
                searchPaths: {profile}
  or
                searchPaths: {application}/{profile}
  </code></pre>
  
  <p>However when I use any of the wildcards {application} or {profile} in my searchPaths it doesn't find the data in the git repo, or for the concatenated option fails to startup at all.</p>
  
  <p>Does anyone have a working example of this I can refer to?
  Cheers
  Roy</p>