title: How to load only profile specific property file and ignore default application.properties?
body: <p>I have a normal spring boot application, and two property files in <code>resources</code> folder: </p>
  
  <p><em>application.properties</em></p>
  
  <pre><code>com.example.prop1=value1
  com.example.enableMock=true
  </code></pre>
  
  <p><em>application-dev.properties</em></p>
  
  <pre><code>com.example.prop1=value11
  </code></pre>
  
  <p>I have some logic based on whether <code>com.example.enableMock</code> is present or missing. Problem is spring loads both files even if <code>spring.profiles.active=dev</code> and the application is getting the <code>com.example.enableMock</code> property. </p>
  
  <p>How do I just load profile specific property file? </p>