Do not ignore unknown fields when invalid fields are being ignored
Previously, ignoring invalid fields would cause the failure for an unknown field to be ignored, irrespective of the ignoreUnknownFields attribute on `@ConfigurationProperties`. This commit updates the NoUnboundElementsBindHandler to ensure that any UnboundConfigurationPropertiesException is thrown rather than being ignored when the handler has been wrapped by an IgnoreErrorsBindHandler. Fixes gh-22308
Showing
Please register or sign in to comment