Document @ConfigurationProperties on @Bean methods

Minor javadoc edits to hint that @ConfigurationProperties can also be
used with @Bean methods.

Fixes gh-1330
This commit is contained in:
Phillip Webb 2014-08-06 09:39:13 -07:00
parent 92899474ac
commit 621649d9c6
1 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,9 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation for externalized configuration. Add this to a class definition if you want
* to bind and validate some external Properties (e.g. from a .properties file).
* Annotation for externalized configuration. Add this to a class definition or a
* {@code @Bean} method in a {@code @Configuration} class if you want to bind and validate
* some external Properties (e.g. from a .properties file).
*
* @author Dave Syer
* @see ConfigurationPropertiesBindingPostProcessor