Skip to content

Commit 621649d

Browse files
author
Phillip Webb
committed
Document @ConfigurationProperties on @bean methods
Minor javadoc edits to hint that @ConfigurationProperties can also be used with @bean methods. Fixes gh-1330
1 parent 9289947 commit 621649d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
import java.lang.annotation.Target;
2424

2525
/**
26-
* Annotation for externalized configuration. Add this to a class definition if you want
27-
* to bind and validate some external Properties (e.g. from a .properties file).
26+
* Annotation for externalized configuration. Add this to a class definition or a
27+
* {@code @Bean} method in a {@code @Configuration} class if you want to bind and validate
28+
* some external Properties (e.g. from a .properties file).
2829
*
2930
* @author Dave Syer
3031
* @see ConfigurationPropertiesBindingPostProcessor

0 commit comments

Comments
 (0)