Commit 13b155eb authored by Kedar Joshi's avatar Kedar Joshi Committed by Madhura Bhave

Document use of @Profile with @ConfigurationProperties scanning

See gh-16612
parent dc39540d
...@@ -1625,9 +1625,9 @@ property files>>. ...@@ -1625,9 +1625,9 @@ property files>>.
[[boot-features-profiles]] [[boot-features-profiles]]
== Profiles == Profiles
Spring Profiles provide a way to segregate parts of your application configuration and Spring Profiles provide a way to segregate parts of your application configuration and
make it be available only in certain environments. Any `@Component` or `@Configuration` make it be available only in certain environments. Any `@Component`, `@Configuration`
can be marked with `@Profile` to limit when it is loaded, as shown in the following or `@ConfigurationProperties` can be marked with `@Profile` to limit when it is loaded,
example: as shown in the following example:
[source,java,indent=0] [source,java,indent=0]
---- ----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment