title: Could not resolve placeholder 'spring.profiles.active' in value "classpath:application-${spring.profiles.active}.properties"
body: <p>Though there are similar questions and answer for my issue but nomn helped so i am posting here.</p>
  
  <p>So I have env specific property file like -</p>
  
  <pre><code>application.properties
  application-local.propereties
  application-dev.propereties
  application-test.propereties
  application-stage.propereties
  </code></pre>
  
  <p>And then in my AppCpnfig class i have used </p>
  
  <pre><code>@PropertySource("classpath:application-${spring.profiles.active}.properties")
  </code></pre>
  
  <p>I am using intellij where in run configuration i have set local. 
  My application is maven project.</p>
  
  <p>In all the property files (except application.properties) i have also put following entries to set that specific env. For example -   </p>
  
  <pre><code> spring.profiles.active=local
   -Dspring.profiles.active=local
  </code></pre>
  
  <p>But still getting this issue when i build my application -</p>
  
  <p>However when i build this application it fails with the issue -
  Could not resolve placeholder 'spring.profiles.active' in value    </p>
  
  <pre><code>classpath:application-${spring.profiles.active}.properties
  </code></pre>
  
  <p>Please help in case anyone knows of a fix for this.</p>