Add metadata support for immutable ConfigurationProperties type

Closes gh-16071
This commit is contained in:
Stephane Nicoll
2019-02-26 14:56:55 +01:00
parent 35d7fccb33
commit 3125f424ce
27 changed files with 1422 additions and 24 deletions

View File

@@ -809,8 +809,11 @@ is used to populate the `description` attribute.
NOTE: You should only use simple text with `@ConfigurationProperties` field Javadoc, since
they are not processed before being added to the JSON.
Properties are discovered through the presence of standard getters and setters with
special handling for collection types (that is detected even if only a getter is present).
If the class has a single constructor with at least one parameters, one property is
created per constructor parameter. Otherwise, properties are discovered through the
presence of standard getters and setters with special handling for collection types (that
is detected even if only a getter is present).
The annotation processor also supports the use of the `@Data`, `@Getter`, and `@Setter`
lombok annotations.