mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Update relaxed binding documentation sample
Include getters and setters with the sample class. Fixes gh-2813
This commit is contained in:
parent
08959286e2
commit
dd19dd70c5
@ -636,6 +636,14 @@ For example, given the following `@ConfigurationProperties` class:
|
||||
|
||||
private String firstName;
|
||||
|
||||
public String getFirstName() {
|
||||
return this.firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user