Skip to content

Instantly share code, notes, and snippets.

Spring boot property loading order

Spring Boot looks for properties using a specific order:

  1. Command line arguments
  2. Java System properties (System.getProperties())
  3. OS environment variables
  4. JNDI attributes from java:comp/env
  5. A RandomValuePropertySource that only has properties in random.*
  6. Application properties outside of your packaged jar (application.properties including YAML and profile variants)
  7. Application properties packaged inside your jar (application.properties including YAML and profile variants)
<!-- Respect Rollcall -->
<li><a href="http://www.alistapart.com/articles/">A List Apart &#8212; for website builders</a></li>
<li><a href="http://abstrusegoose.com/">Abstruse Goose &#8212; my favorite comic</a></li>
<li><a href="http://al3x.net/">Alex Payne &#8212; technology rambling</a></li>
<li><a href="http://dashes.com/anil/">Anil Dash &#8212; on culture, apple &amp; design</a></li>
<li><a href="http://weblogs.mozillazine.org/asa/">Asa Dotzler &#8212; on mozilla &amp; software</a></li>
<li><a href="http://www.azarask.in/blog/">Aza Raskin &#8211; on design &amp; firefox</a></li>
<li><a href="http://christophzillgens.com/en/">Christoph Zillgens &#8212; interface design</a></li>
<li><a href="http://cssremix.com/">CSS Remix &#8212; gorgeous designs</a></li>
<li><a href="http://css-tricks.com/">CSS Tricks</a></li>

What is REST?

  • Representational State Transfer
  • An architectural style for designing distributed systems
  • Not a standard, but rather a set of constraints
    • Client/Server, Stateless, Uniform Interface, etc.
  • Not tied to HTTP, but associated most commonly with it

Uniform Interface

  • More flexible principals (no hard and fast rules)
    • Identification of resources