title: Spring Boot: Change the order of the PropertySource
body: <p>Spring Boot uses a PropertySource order that is designed to allow sensible overriding of values, properties are considered in the following order:</p>
  
  <ol>
  <li>Command line arguments.</li>
  <li>Properties from SPRING_APPLICATION_JSON (inline JSON embedded in an environment variable or system property)</li>
  <li>JNDI attributes from java:comp/env.</li>
  <li>Java System properties (System.getProperties()).</li>
  <li>OS environment variables.</li>
  <li>A RandomValuePropertySource that only has properties in random.*.</li>
  <li>Profile-specific application properties outside of your packaged jar (application-{profile}.properties and YAML variants)</li>
  <li>Profile-specific application properties packaged inside your jar (application-{profile}.properties and YAML variants)</li>
  <li>Application properties outside of your packaged jar (application.properties and YAML variants).</li>
  <li>Application properties packaged inside your jar (application.properties and YAML variants).</li>
  <li>@PropertySource annotations on your @Configuration classes.</li>
  <li>Default properties (specified using SpringApplication.setDefaultProperties).</li>
  </ol>
  
  <p><em>But I don't like this. How can I change it?</em></p>