Correct the position of JNDI in the ordered list of property sources

Fixes gh-1693
This commit is contained in:
Andy Wilkinson 2014-10-13 15:35:06 +01:00
parent 16937746a0
commit 7060cc1967

View File

@ -203,9 +203,9 @@ Spring Boot uses a very particular `PropertySource` order that is designed to al
sensible overriding of values, properties are considered in the the following order:
. Command line arguments.
. JNDI attributes from `java:comp/env`.
. Java System properties (`System.getProperties()`).
. OS environment variables.
. JNDI attributes from `java:comp/env`
. A `RandomValuePropertySource` that only has properties in `+random.*+`.
. Application properties outside of your packaged jar (`application.properties`
including YAML and profile variants).