Add reference to `@TestPropertySource` in the doc

Closes gh-5899
pull/5684/merge
Stephane Nicoll 9 years ago
parent 8201c8d1f6
commit 9ab5c09905

@ -329,8 +329,10 @@ via Spring's `Environment` abstraction or
via `@ConfigurationProperties`.
Spring Boot uses a very particular `PropertySource` order that is designed to allow
sensible overriding of values, properties are considered in the following order:
sensible overriding of values. Properties are considered in the following order:
. {spring-javadoc}/test/context/TestPropertySource.{dc-ext}[`@TestPropertySource`] annotations
on your tests.
. Command line arguments.
. Properties from `SPRING_APPLICATION_JSON` (inline JSON embedded in an environment variable or system property)
. `ServletConfig` init parameters.

Loading…
Cancel
Save