From 621649d9c6c71e2b47ab51bef9b65d9c1af99289 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 6 Aug 2014 09:39:13 -0700 Subject: [PATCH] Document @ConfigurationProperties on @Bean methods Minor javadoc edits to hint that @ConfigurationProperties can also be used with @Bean methods. Fixes gh-1330 --- .../boot/context/properties/ConfigurationProperties.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java index 6da6fca389..6bba5facc5 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java @@ -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