From 9ab5c09905755dd7a7e4e98feec9d64bba23ab84 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 24 May 2016 09:07:26 +0200 Subject: [PATCH] Add reference to `@TestPropertySource` in the doc Closes gh-5899 --- spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 43d8b4ae03..034c70bc79 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -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.