Clarify which part of @ConfigurationProperties is internal API

Closes gh-19199
This commit is contained in:
Stephane Nicoll 2019-12-24 10:46:01 +01:00
parent 8f9d9fa20e
commit 2db2daeddf
1 changed files with 1 additions and 3 deletions

View File

@ -793,9 +793,7 @@ The preceding POJO defines the following properties:
* `acme.security.password`.
* `acme.security.roles`, with a collection of `String`.
NOTE: Spring Boot auto-configuration heavily makes use of `@ConfigurationProperties` for easily configuring auto-configured beans.
Similar to auto-configuration classes, `@ConfigurationProperties` classes available in Spring Boot are for internal use only.
The properties that map to the class, which are configured via properties files, YAML files, environment variables etc., are public API but the content of the class itself is not meant to be used directly.
NOTE: The properties that map to `@ConfigurationProperties` classes available in Spring Boot, which are configured via properties files, YAML files, environment variables etc., are public API but the accessors (getters/setters) of the class itself are not meant to be used directly.
[NOTE]
====