This commit is contained in:
Stephane Nicoll 2016-08-28 11:02:19 +02:00
parent afadac27bd
commit c4cb831770
1 changed files with 2 additions and 2 deletions

View File

@ -891,8 +891,8 @@ be used by IDEs. See the <<configuration-metadata>> appendix for details.
[[boot-features-external-config-3rd-party-configuration]]
==== Third-party configuration
As well as using `@ConfigurationProperties` to annotate a class, you can also use it
on `@Bean` methods. This can be particularly useful when you want to bind properties to
third-party components that are outside of your control.
on public `@Bean` methods. This can be particularly useful when you want to bind
properties to third-party components that are outside of your control.
To configure a bean from the `Environment` properties, add `@ConfigurationProperties` to
its bean registration: