mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Correct the position of JNDI in the ordered list of property sources
Fixes gh-1693
This commit is contained in:
parent
16937746a0
commit
7060cc1967
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user