mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-29 05:29:08 +00:00
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