mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 20:59:07 +00:00
Prior to this commit, all `with**Converter` methods in `HttpMessageConverters` builders would only apply if the `registerDefaults()` option is on. While the original intent is to allow overrides for auto-detected defaults, this creates an unnecessary discrepancy with `addCustomConverter` which is always effective. Allowing sich registrations when defaults are off should not introduce invalid states and only reflects the intent of the developer. This commit now allows such cases. Fixes gh-36579