Skip to content

Commit 7060cc1

Browse files
committed
Correct the position of JNDI in the ordered list of property sources
Fixes gh-1693
1 parent 1693774 commit 7060cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ Spring Boot uses a very particular `PropertySource` order that is designed to al
203203
sensible overriding of values, properties are considered in the the following order:
204204

205205
. Command line arguments.
206+
. JNDI attributes from `java:comp/env`.
206207
. Java System properties (`System.getProperties()`).
207208
. OS environment variables.
208-
. JNDI attributes from `java:comp/env`
209209
. A `RandomValuePropertySource` that only has properties in `+random.*+`.
210210
. Application properties outside of your packaged jar (`application.properties`
211211
including YAML and profile variants).

0 commit comments

Comments
 (0)