mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-30 14:19:30 +00:00
Add a `BindRestriction` option to `Bindable` which allows direct property binding to be bypassed. The option is automatically applied by the `ConfigurationPropertiesBinder`. Prior to this commit, `@ConfugurationProperties` binding could silently fail if a direct property existed that could be converted to the properties class. This can be the case if a single-argument constructor is available as the `ObjectToObject` converter would kick in. Closes gh-16038 Co-authored-by: Madhura Bhave <mbhave@pivotal.io>