Preserve Reactor HTTP client defaults when upgrading to Spring Boot 4.1
ProprietarySpring Boot 4.1 adds proxyWithSystemProperties() to the Reactor HTTP client defaults. Insert .withHttpClientDefaults(client -> client.compress(true)) to preserve the previous compression-only defaults, leaving explicit defaults and subsequent customizers untouched. Use this recipe alongside the dependency upgrade to Spring Boot 4.1 or later; the inserted method is not available in older versions. Only modules currently below 4.1 are eligible, so later upgrades do not reintroduce a defaults override that a developer removed.
io. moderne. java. spring. boot4. PreserveReactorHttpClientDefaults_4_1mod run . --recipe= io. moderne. java. spring. boot4. PreserveReactorHttpClientDefaults_4_1Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.