-
Notifications
You must be signed in to change notification settings - Fork 40.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use existing value rather than deducing bind method
When there is an existing value, deducing the bind method may incorrectly result in the use of constructor binding. This results in a failure in the configuration properties post-processor as it refuses to bind properties to a bean whose attributes indicate that constructor binding should have been used. This commit updates ConfigurationPropertiesBean to avoid tryin to deduce the bind method and instead use the presence or absence of an existing value to determine the type of binding that should be used. Only when there is no existing value is constructor binding appropriate. Fixes gh-36175
- Loading branch information
1 parent
2a5a5d1
commit 090802b
Showing
3 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters