Document that ConfigurationProperties can't use SpEL

Closes gh-1768
This commit is contained in:
Stephane Nicoll
2015-10-14 14:36:09 +02:00
parent 995ff66eae
commit 06c78a41cd
2 changed files with 6 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ import java.lang.annotation.Target;
* 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).
* <p>
* Note that contrary to {@code @Value}, SpEL expressions are not evaluated since property
* values are externalized.
*
* @author Dave Syer
* @see ConfigurationPropertiesBindingPostProcessor