Browse Source

Document use of @Profile with @ConfigurationProperties scanning

See gh-16612
pull/16699/head
Kedar Joshi 7 years ago committed by Madhura Bhave
parent
commit
13b155eb2a
  1. 6
      spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

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

@ -1625,9 +1625,9 @@ property files>>. @@ -1625,9 +1625,9 @@ property files>>.
[[boot-features-profiles]]
== Profiles
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`
can be marked with `@Profile` to limit when it is loaded, as shown in the following
example:
make it be available only in certain environments. Any `@Component`, `@Configuration`
or `@ConfigurationProperties` can be marked with `@Profile` to limit when it is loaded,
as shown in the following example:
[source,java,indent=0]
----

Loading…
Cancel
Save