Skip to main content

Spring Cloud 2026.0 (Paddington) Migration Guide: Upgrading from 2025.1 Oakwood

Upgrade a six-service project from Spring Cloud 2025.1 to 2026.0.0 (Paddington) on Spring Boot 4.2: the version matrix, five tested steps, gateway trusted-proxy behaviour, HTTP config notifications, a refresh that changes nothing on records, and the libraries that leave your classpath.

Spring Cloud 2026.0.0, code-named Paddington, is generally available: announced on 20 November 2026, built on Spring Boot 4.2.0. If you are on 2025.1 (Oakwood), the upgrade of a plain service is two version numbers. What deserves your time is the handful of places where behaviour moves underneath code that still compiles: what your gateway sends upstream, how configuration changes reach running applications, and a few libraries that quietly leave the classpath.

This guide upgrades the six-service microservices project (config server, Eureka, gateway, product, inventory and order services) one step at a time, runs it after each step, and shows what changed. It replaces my preview of the 24 September milestone, 2026.0.0-M1; what that preview measured is kept here and re-checked against the GA jars, including one point I could not confirm then and can now.

Versions tested. Spring Boot 4.2.0 with Spring Cloud 2026.0.0 (components 5.1.0), compared against Boot 4.1.3 with Spring Cloud 2025.1.5 and, for the gateway, 2025.1.3. JDK 25 (Temurin 25.0.5.1), Maven. Versions were read from the published BOM POMs on Maven Central. Everything below was run as plain processes on one machine; no Docker, Kafka, RabbitMQ, Kubernetes, Vault or Consul. Companion code: cloud-2026-upgrade. The two class-level demos from the preview remain downloadable: ForwardedDemo.java and HttpNotifierDemo.java.

Spring Boot and Spring Cloud have to move together

A Spring Cloud release train is a list of component versions that were built and tested together, published as one BOM (a Maven file that only declares versions). Each train accepts specific Spring Boot lines. You do not pick Gateway or Config versions yourself; you pick the train, and the train picks them.

The diagram shows the combinations that matter for this upgrade. The two solid paths start. The two crossed ones stop at startup, so there is no way to upgrade Boot this week and Cloud next week.

Boot 4.1.3your starting pointCloud 2025.1.5OakwoodBoot 4.2.0targetCloud 2026.0.0Paddingtonstartsstartsdashed: refused at startup

The version matrix, read from the three BOM POMs:

2025.1.32025.1.52026.0.0
Spring Boot the BOM is built on4.0.84.0.104.2.0
Boot lines it accepts4.0.x, 4.1.x4.0.x, 4.1.x4.2.x
Commons5.0.35.0.55.1.0
Config5.0.55.0.75.1.0
Gateway5.0.35.0.55.1.0
Netflix5.0.25.0.45.1.0
OpenFeign5.0.35.0.45.1.0
Stream5.0.35.0.55.1.0
Bus5.0.35.0.45.1.0 (now in Stream)
Circuit Breaker5.0.35.0.35.1.0
Function5.0.45.0.65.1.0
Vault5.0.25.0.45.1.0
Kubernetes5.0.35.0.55.1.0

Here is what the config server says when only one number is bumped, trimmed after the action line (10-half-upgrades.txt):

=== Boot 4.2.0 with Spring Cloud 2025.1.5
APPLICATION FAILED TO START
***************************
Description:
Your project setup is incompatible with our requirements due to following reasons:
- Spring Boot [4.2.0] is not compatible with this Spring Cloud release train
Action:
Consider applying the following actions:
- Change Spring Boot version to one of the following versions [4.0.x, 4.1.x].
[...]

=== Boot 4.1.3 with Spring Cloud 2026.0.0
APPLICATION FAILED TO START
***************************
Description:
Your project setup is incompatible with our requirements due to following reasons:
- Spring Boot [4.1.3] is not compatible with this Spring Cloud release train
Action:
Consider applying the following actions:
- Change Spring Boot version to one of the following versions [4.2.x].

Do not switch the check off. The full message offers spring.cloud.compatibility-verifier.enabled=false. That silences the check, not the incompatibility. In 5.1.0 the accepted range is 4.2.x.

Going deeper

Upgrade the shop in five small steps

Small steps mean that when something breaks you know which change did it. Each step is a patch file, and upgrade.sh applies them to a copy of the project, so the original stays on 4.1.

StepPatchWhat it does
101move to the latest patches of the old line: Boot 4.1.3, Cloud 2025.1.5
202Boot 4.2.0 and Cloud 2026.0.0 in one commit
303tell the gateway who it may believe
404config change notifications over HTTP
505make a refreshed value actually apply

Step 1 is not filler. 2025.1.5 shipped the same day as Paddington and its announcement lists twelve CVE fixes, so it is worth deploying by itself even if 2026.0 has to wait. It also already carries two of the gateway behaviour changes described below.

Step 2 is the whole code change a service like this needs (02-paddington.patch):

--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
   <parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
-    <version>4.1.3</version>
+    <version>4.2.0</version>
     <relativePath/>
   </parent>
 
@@ -17,7 +17,7 @@
 
   <properties>
     <java.version>21</java.version>
-    <spring-cloud.version>2025.1.5</spring-cloud.version>
+    <spring-cloud.version>2026.0.0</spring-cloud.version>
   </properties>
 
   <modules>

To build and run the upgraded copy, use the commands below, built on upgrade.sh:

$ ./scripts/upgrade.sh 2
$ cd run/shop && mvn -DskipTests package
$ ./scripts/start.sh && ./scripts/demo.sh

All six services compiled with no source edits. I then ran the project’s own scenarios and compared the captured files with the step 1 run.

Comparison, with timestamps and trace ids masked (11-shop-before-after.txt):

# The shop's scenario files, compared with Boot 4.1.3 / 2025.1.5 (timestamps and trace ids masked).
# 00-startup-race.txt is left out: it records timing.

=== Boot 4.2.0 / 2026.0.0, only the two version numbers changed (step 2)
01-config-server.txt: identical
02-eureka-registry.txt: identical
03-gateway-requests.txt: identical
04-trace-propagation.txt: identical
05-circuit-breaker.txt: identical
06-eureka-lb-trap.txt: DIFFERENT
    < org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'scopedTar
    < c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='ht
    < com.netflix.discovery.DiscoveryClient    : DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration f

=== Boot 4.2.0 / 2026.0.0, all five steps applied
01-config-server.txt: DIFFERENT
    <     management.endpoints.web.exposure.include = health,info,circuitbreakers
    >     management.endpoints.web.exposure.include = health,info,circuitbreakers,refresh
02-eureka-registry.txt: DIFFERENT
    > CONFIG-SERVER      instance=config-server:8888     status=UP
03-gateway-requests.txt: identical
04-trace-propagation.txt: identical
05-circuit-breaker.txt: identical
06-eureka-lb-trap.txt: DIFFERENT
    < org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'scopedTar
    < c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='ht
    < com.netflix.discovery.DiscoveryClient    : DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration f
    < order-service:8092 registered: False
    > order-service:8092 registered: True

Orders, stock, error statuses, trace propagation and the circuit breaker behaved identically after the version bump. The one file that differs is a failure that no longer happens, covered two sections down. The extra differences after all five steps are the two things the later patches add: the refresh endpoint and the config server appearing in Eureka.

Going deeper

What leaves your classpath, and what was actually removed

“Removed modules” can mean two things: artifacts you declare that no longer exist, and libraries that used to arrive for free through someone else’s dependency. The second kind is the one that breaks builds here.

Selected lines of the dependency diff for the six services; config-monitor is there because of step 4 (15-dependency-diff.txt):

# Libraries of the six services: Boot 4.1.3 / 2025.1.5 -> Boot 4.2.0 / 2026.0.0 (selected groups)
io.github.resilience4j:resilience4j-annotations                2.3.0      -> 2.4.0
io.github.resilience4j:resilience4j-core                       2.3.0      -> 2.4.0
io.github.resilience4j:resilience4j-spring-boot3               2.3.0      -> (gone)
io.github.resilience4j:resilience4j-spring-boot4               (absent)   -> 2.4.0
io.projectreactor.addons:reactor-extra                         3.6.2      -> (gone)
org.jetbrains.kotlin:kotlin-stdlib                             2.3.21     -> (gone)
org.jetbrains:annotations                                      13.0       -> (gone)
org.springframework.boot:spring-boot                           4.1.3      -> 4.2.0
org.springframework.cloud:spring-cloud-config-monitor          (absent)   -> 5.1.0
org.springframework.cloud:spring-cloud-gateway-server-webmvc   5.0.5      -> 5.1.0
org.springframework:spring-core                                7.0.11     -> 7.1.0

reactor-extra used to come in through spring-cloud-loadbalancer. Code that imports reactor.retry without declaring it stops compiling.

The same one-class project on both trains (31-reactor-extra.txt):

=== Boot 4.1.3 / Spring Cloud 2025.1.5
compiles

=== Boot 4.2.0 / Spring Cloud 2026.0.0
[ERROR] probes/reactor-extra/src/main/java/com/ankurm/upgrade/UsesReactorExtra.java:[3,21] package reactor.retry does not exist
[ERROR] probes/reactor-extra/src/main/java/com/ankurm/upgrade/UsesReactorExtra.java:[8,16] cannot find symbol
[ERROR] probes/reactor-extra/src/main/java/com/ankurm/upgrade/UsesReactorExtra.java:[3,21] package reactor.retry does not exist

The fix is to declare io.projectreactor.addons:reactor-extra yourself, with a version, or move to Reactor’s or Spring Framework’s own retry support. Likewise, if you exclude or reference resilience4j-spring-boot3 by name, the artifact is now resilience4j-spring-boot4 (Resilience4J 2.4.0), and code that relied on a transitive Kotlin standard library needs to declare it.

As for declared artifacts, I compared every Spring Cloud entry managed by the two BOMs.

BOM comparison (01-bom-diff.txt):

# org.springframework.cloud artifacts managed by spring-cloud-dependencies 2025.1.5 vs 2026.0.0
managed in 2025.1.5: 115    managed in 2026.0.0: 114

REMOVED (1)
  org.springframework.cloud:spring-cloud-function-deployer:5.0.6
    (but that version's POM is NOT in the repository: 404)

ADDED (0)

So nothing you could actually have been using disappeared from the main BOM: the one dropped entry pointed at a version that is not published. One thing outside it did stop: spring-cloud-bus-dependencies has no 5.1.0 on Maven Central (its newest 5.1 entry is 5.1.0-M1). The Bus starters keep their coordinates and are now managed by the Stream BOM, because Bus has been folded into Spring Cloud Stream. If you import the Bus BOM directly, delete that import and rely on spring-cloud-dependencies.

Deprecated, not removed, according to the announcement: the RSocket and gRPC modules of Spring Cloud Function, and in Stream the reactive Kafka binder and the Schema Registry component. I did not run any of these.

Going deeper

A fix you get for free: Eureka stops borrowing your load-balanced builder

A @LoadBalanced RestClient.Builder treats the host in a URL as a service name to look up. On 2025.1, if that was the only builder in the application, Eureka’s own client could pick it up, try to look up “localhost” as a service, and never register. The microservices project works around it with a second, @Primary plain builder. Its script starts an extra order service with the workaround switched off.

On 2025.1.5 (12-eureka-lb-trap-before.txt):

--- the log lines that give it away ---
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'scopedTarget.eurekaClient': Requested bean is currently in creation: Is there an unresolvable circular reference or an as
c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/}, exception=No instances available for localhost
com.netflix.discovery.DiscoveryClient    : DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration failed Cannot execute request on any known server

--- is instance order-service:8092 in Eureka? ---
order-service:8092 registered: False

On 2026.0.0, same switch, read from the order service’s log (13-eureka-lb-trap-after.txt):

lines with BeanCurrentlyInCreationException:     0
lines with 'No instances available for localhost': 0
DiscoveryClient_ORDER-SERVICE/order-service:8092 - registration status: 204

Status 204 is Eureka accepting the registration. The script’s own “is it in the registry?” question answered yes in some runs and no in others on 2026.0.0, because it is asked seconds after startup and the Eureka server caches that answer; trust the log. The announcement’s Netflix entry explains the fix: the Eureka client no longer uses a @LoadBalanced builder to talk to the Eureka server. You can keep the plain builder; it is no longer what stands between you and registration.

Going deeper

Gateway: an untrusted caller’s headers are now replaced, not just dropped

A proxy tells the service behind it who really called, using the Forwarded header or the X-Forwarded-* family. Anyone can type those headers, so a gateway must only believe them when the machine connecting to it is on its trusted proxies list, a regular expression matched against IP addresses.

In 2025.1.3, when the caller was not on the list, the gateway threw the forged headers away and then added nothing. The upstream service could not even see the real address of the peer. The diagram shows the difference: the forged value is removed either way, and what changes is whether the gateway then writes down what it saw itself.

untrusted callersends a forged headerGateway 5.0.3forged value removedGateway 5.0.5, 5.1.0forged value removedupstream seesno forwarding headerupstream seesfor = the real peer

I started a real gateway in front of a backend that prints the headers it receives. The client is 127.0.0.1 and claims to be 198.51.100.7 over https. With trusted-proxies=10\..* the client is not trusted.

Gateway Server WebMVC, the flavour the shop uses (20-trusted-proxies-webmvc.txt):

=== Boot 4.1.3 / Spring Cloud 2025.1.3 | trusted-proxies=10\..*  (caller NOT trusted)
(no Forwarded or X-Forwarded-* header at all)

=== Boot 4.1.3 / Spring Cloud 2025.1.5 | trusted-proxies=10\..*  (caller NOT trusted)
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
x-forwarded-for: 127.0.0.1
x-forwarded-host: localhost:8090
x-forwarded-port: 8090
x-forwarded-proto: http

=== Boot 4.2.0 / Spring Cloud 2026.0.0 | trusted-proxies=10\..*  (caller NOT trusted)
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
x-forwarded-for: 127.0.0.1
x-forwarded-host: localhost:8090
x-forwarded-port: 8090
x-forwarded-proto: http

Two things matter. First, this arrives with 2025.1.5, not only with 2026.0: if you take the CVE patch release, you take the behaviour. Second, the WebFlux gateway gave the same results on all three trains (21-trusted-proxies-webflux.txt). The milestone preview attributed the change to the fix for Gateway #4271, where the filter returned early for an untrusted address.

And if you never set trusted-proxies, nothing changes: on all three trains the backend received no forwarding header at all. Step 3 wires the setting into the shop’s gateway, which reads its configuration from the config server.

Step 3 (03-trusted-proxies.patch):

--- a/config-server/src/main/resources/config/gateway.yml
+++ b/config-server/src/main/resources/config/gateway.yml
@@ -4,6 +4,9 @@ spring:
     gateway:
       server:
         webmvc:
+          # Regex matched against the caller's IP AND every address in X-Forwarded-For / Forwarded for=.
+          # Empty (the default here) switches the forwarding filters off: nothing is forwarded upstream.
+          trusted-proxies: ${TRUSTED_PROXIES:}
           routes:
             - id: products
               uri: lb://product-service

The shop’s gateway on 2026.0.0, routes swapped for the header-printing backend (25-shop-gateway-trusted-proxies.txt):

=== TRUSTED_PROXIES=<not set>
(no Forwarded or X-Forwarded-* header at all)

=== TRUSTED_PROXIES=10\..*
forwarded: proto=http;host="localhost:8080";for="127.0.0.1:<port>"
x-forwarded-for: 127.0.0.1
x-forwarded-host: localhost:8080
x-forwarded-port: 8080
x-forwarded-proto: http

This is a bug fix, and it makes the gateway send more, not less. Three things to check:

  • Upstream services that read “no Forwarded header” as “direct request” may now see one on traffic from an untrusted hop. Review IP allow-lists, rate limits and audit logs that use the client address.
  • If your gateway sits behind a load balancer that is not covered by the setting, you used to lose the client address entirely; now your services see the balancer’s address. Fix the setting instead of relying on either behaviour. The property is spring.cloud.gateway.server.webmvc.trusted-proxies or spring.cloud.gateway.server.webflux.trusted-proxies.
  • These are gateway settings. Boot’s own forwarded-header settings for the application that receives the request were redesigned in 4.2; see the Boot 4.2 checklist.
The preview’s class-level demo, re-run on the GA jars

The preview called the two WebFlux filters directly with a request from 203.0.113.9 and only 10.* trusted. On 5.0.3 the forwarded value managed by each filter came out null; on 5.1.0-M1 it carried the real peer. The GA run matches M1. Each filter only manages its own header family, so the other family passes through that one filter untouched; in a running gateway both filters act.

Output on 5.1.0 (50-forwarded-filters-ga.txt):

== untrusted caller 203.0.113.9: Forwarded filter
  Forwarded        = [proto=http;for="203.0.113.9:40000"]
  X-Forwarded-For  = [198.51.100.7]
  X-Forwarded-Proto= [https]
== untrusted caller 203.0.113.9: X-Forwarded filter
  Forwarded        = [for=198.51.100.7;proto=https]
  X-Forwarded-For  = [203.0.113.9]
  X-Forwarded-Proto= [http]

Source: ForwardedDemo.java.

Where the forwarded-header classes live, and how the preview was built

WebFlux: spring-cloud-gateway-server-webflux, package org.springframework.cloud.gateway.filter.headers: ForwardedHeadersFilter, XForwardedHeadersFilter, RemoveHopByHopHeadersFilter and the TrustedProxies interface (PROPERTY, isTrusted(String), from(String), filterHeaders(...)). WebMVC: package org.springframework.cloud.gateway.server.mvc.filter, with ForwardedRequestHeadersFilter, XForwardedRequestHeadersFilter and its own TrustedProxies.

The preview compared two builds: Boot 4.1.1 with Gateway 5.0.3, and Boot 4.2.0-M2 with 5.1.0-M1 from the Spring milestone repository, plus spring-test for MockServerWebExchange. The GA build needs no milestone repository: pom.xml.

Going deeper

Behind a load balancer, the trusted-proxies pattern also filters the client’s address

This one is not new in 2026.0, but you will meet it the moment you configure the setting. The pattern is not only applied to the machine that connects. When that machine is trusted, the gateway also tests every address inside X-Forwarded-For and every for= inside Forwarded, and drops the ones that do not match.

In the diagram the load balancer is trusted and honestly reports the real client. A pattern that lists only the balancer deletes the client from the chain.

client203.0.113.50load balancer127.0.0.1pattern: balancer onlyXFF: 127.0.0.1pattern: balancer | clientXFF: 203.0.113.50,127.0.0.1gateway filters the chain

Gateway 5.1.0; the balancer is played by 127.0.0.1 (24-behind-load-balancer.txt):

=== webmvc | Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1
forwarded: proto=http;host="localhost:8090";for="127.0.0.1:<port>"
x-forwarded-for: 127.0.0.1

=== webmvc | Spring Cloud 2026.0.0 | trusted-proxies=127\.0\.0\.1|203\.0\.113\.50
forwarded: for=203.0.113.50;proto=https | proto=http;host="localhost:8090";for="127.0.0.1:<port>"
x-forwarded-for: 203.0.113.50,127.0.0.1

Both gateway flavours behaved this way on 2025.1.3, 2025.1.5 and 2026.0.0. In the second block of that output the client’s address was added to the pattern, which you cannot do for real users on the internet. A pattern broad enough to keep every client address also means believing every address a caller invents, so decide which of the two your upstream needs. If a service needs the original client address, have it come from an edge you control, in a way you have tested end to end, and verify it with a header-printing backend before relying on it.

The fingerprint of this one. Every client in your upstream logs has the load balancer’s address, although the balancer is on the trusted list and is sending the real one.

Going deeper

Gateway: retry, WebSocket origins and the security fixes

Retry moved from Reactor Addons to Spring Framework’s core retry (#4290). The preview had not tested it. For a plain WebFlux Retry filter the number of upstream calls did not change.

retries: 3 against a backend that always fails (22-retry-filter-webflux.txt):

=== Boot 4.1.3 / Spring Cloud 2025.1.5
client status: 500
upstream calls to /flaky: 4

=== Boot 4.2.0 / Spring Cloud 2026.0.0
client status: 500
upstream calls to /flaky: 4

That covers one status-based retry with default settings. If you configure backoff, jitter, exceptions or a custom retry filter, run your own tests.

The change more likely to bite is a security fix: CVE-2026-59428. A WebSocket handshake from a foreign Origin through a ws:// route is now refused.

Handshake with Origin: https://evil.example (23-websocket-origin-webflux.txt):

=== Boot 4.1.3 / Spring Cloud 2025.1.3
HTTP/1.1 101 Switching Protocols


=== Boot 4.1.3 / Spring Cloud 2025.1.5
HTTP/1.1 403 Forbidden


=== Boot 4.2.0 / Spring Cloud 2026.0.0
HTTP/1.1 403 Forbidden

If a browser app on another origin connects through your WebFlux gateway, list it under spring.cloud.gateway.server.webflux.websocket.allowed-origins or allowed-origin-patterns. Gateway Server WebMVC gains WebSocket routing in 5.1, with matching properties under server.webmvc.websocket.*, and a LocalResponseCache filter; I did not run either MVC feature.

The Gateway fixes in both new releases also cover a gRPC channel leak (CVE-2026-59425), a global response cache shared across routes (CVE-2026-59426) and caching of private responses (CVE-2026-59427). The twelve CVEs span Gateway, Config Server, Kubernetes, Function, Netflix and Stream.

Going deeper

Config Server can now notify applications over HTTP, with no message broker

Config Server’s monitor module reacts when configuration files change, usually because a Git host calls its /monitor webhook, and tells applications to refresh. Until now that meant Spring Cloud Bus and a broker (RabbitMQ or Kafka). The new HttpPropertyPathNotifier (#3279) looks the application up in service discovery and posts to each instance directly.

Follow the diagram from left to right. The notification only travels if the config server can find instances, and the new value only matters if the application can take it in, which is the subject of the next section.

Git webhookor local file editconfig serverHTTP notifierdiscovery (Eureka)instance 1/actuator/refreshinstance 2/actuator/refresheach fetches thenew configuration

Correcting the preview: the pull request description names a switch, spring.cloud.config.server.monitor.http.enabled. I said I could not confirm it. In the GA auto-configuration there is no such condition. The HTTP notifier is created when Bus is absent from the classpath (or spring.cloud.bus.enabled=false) and both a DiscoveryClient bean and a RestClient.Builder bean exist. Step 4 supplies all of it.

Step 4 (04-config-notify.patch):

--- a/config-server/pom.xml
+++ b/config-server/pom.xml
@@ -18,6 +18,21 @@
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-actuator</artifactId>
     </dependency>
+    <!-- POST /monitor, and (without Spring Cloud Bus on the classpath) the new HttpPropertyPathNotifier -->
+    <dependency>
+      <groupId>org.springframework.cloud</groupId>
+      <artifactId>spring-cloud-config-monitor</artifactId>
+    </dependency>
+    <!-- the notifier needs a DiscoveryClient bean ... -->
+    <dependency>
+      <groupId>org.springframework.cloud</groupId>
+      <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
+    </dependency>
+    <!-- ... and a RestClient.Builder bean -->
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-restclient</artifactId>
+    </dependency>
   </dependencies>
 
   <build>
--- a/config-server/src/main/resources/application.yml
+++ b/config-server/src/main/resources/application.yml
@@ -10,3 +10,10 @@ spring:
           search-locations: classpath:/config
 server:
   port: 8888
+eureka:
+  client:
+    service-url:
+      defaultZone: ${EUREKA_URL:http://localhost:8761/eureka}
+  instance:
+    hostname: ${EUREKA_HOSTNAME:localhost}
+    instance-id: ${spring.application.name}:${server.port}
--- a/config-server/src/main/resources/config/application.yml
+++ b/config-server/src/main/resources/config/application.yml
@@ -3,7 +3,7 @@ management:
   endpoints:
     web:
       exposure:
-        include: health,info,circuitbreakers
+        include: health,info,circuitbreakers,refresh
   tracing:
     sampling:
       probability: 1.0

Leave out the third dependency, spring-boot-starter-restclient, and the config server does not start.

Without a RestClient.Builder bean (42-notifier-without-restclient.txt):

java.lang.IllegalStateException: At least one PropertyPathNotifier must be available
Error creating bean with name 'propertyPathEndpoint'

An unsigned /monitor call is refused. A plain curl -d path=order-service returns 403 unless a webhook secret is configured and the request is signed for that provider. The validating filter is present in both 2025.1.3 and 2026.0.0 (and absent from 5.0.0). The test below sets spring.cloud.config.server.monitor.github.webhook-secret on the command line and signs the body; a real secret belongs in your secret store.

Unsigned, signed and wrongly signed requests on the upgraded shop (41-config-notify-class.txt):

--- an unsigned request to /monitor (the curl most tutorials show)
$ curl -X POST localhost:8888/monitor -d path=order-service
HTTP 403

--- a signed GitHub-style push webhook, the way a remote Git repository would call
$ curl -X POST localhost:8888/monitor -H 'X-GitHub-Event: push' -H 'X-Hub-Signature-256: sha256=<hmac>' -d '{"commits":[{"modified":["order-service.yml"]}]}'
["order-service","order"]
HTTP 200

--- same webhook, wrong signature
HTTP 403

The reply lists the application names the server guessed from the file name; order-service also yields order, which has no instances. With a local file: repository you do not even need the webhook, because the monitor watches the directory.

Editing the file is enough (41-config-notify-class.txt):

--- edit order-service.yml in the config repository: currency EUR -> USD, max-quantity 10 -> 3
(no request sent: with a local file: repository the monitor module watches the directory itself)

--- config server log
INFO o.s.c.c.m.FileMonitorConfiguration       : Monitoring for local config changes: [run/config]
INFO o.s.c.c.monitor.PropertyPathEndpoint     : Refresh for: order-service

--- order-service log
INFO o.s.cloud.endpoint.RefreshEndpoint       : Refreshed keys : [shop.order.currency, shop.order.max-quantity]

--- what order-service uses after the refresh
$ curl localhost:8082/orders/config
{"currency":"USD","maxQuantity":3}

To see exactly what the notifier sends, the preview’s demo calls it with a stub discovery client listing three instances of orders (one with metadata refresh-endpoint=/custom/refresh, one down). The GA output matches the milestone.

HttpPropertyPathNotifier on 5.1.0, stack traces removed (51-http-notifier-ga.txt):

== 1. changed applications: orders and ghost
WARN HttpPropertyPathNotifier -- Failed to notify instance http://127.0.0.1:1
server received: POST /actuator/refresh
server received: POST /custom/refresh
requests received = 2 (3 instances registered for orders, one unreachable)
== 2. override the path per application
WARN HttpPropertyPathNotifier -- Failed to notify instance http://127.0.0.1:1
server received: POST /internal/refresh
server received: POST /internal/refresh
  • The default target is POST /actuator/refresh on every instance discovery reports.
  • An instance can choose its own path with the refresh-endpoint metadata key.
  • spring.cloud.config.server.monitor.http.endpoints (application name to path) overrides both.
  • An unreachable instance only produces a warning. The notifier source has no retry, so a missed refresh is visible in a log line.
  • The application must expose the refresh endpoint, and you should not leave it open: anyone who can reach it can trigger a refresh.

All three notifier classes are in spring-cloud-config-monitor, package org.springframework.cloud.config.monitor, and the HTTP and Bus notifiers share the PropertyPathNotifier interface and its one method, notifyApplications(Set<String>).

Going deeper

The refresh ran, and the value did not change

A refresh fetches new configuration into the application’s environment and then re-binds @ConfigurationProperties objects. The shop’s OrderProperties was a Java record, which is filled through its constructor and cannot be changed afterwards. The log happily reports the changed keys while the service keeps the old values.

Step 4 applied, OrderProperties still a record (40-config-notify-record.txt):

--- order-service log
INFO o.s.cloud.endpoint.RefreshEndpoint       : Refreshed keys : [shop.order.currency, shop.order.max-quantity]

--- what order-service uses after the refresh
$ curl localhost:8082/orders/config
{"currency":"EUR","maxQuantity":10}

Step 5 turns it into a class with setters (05-refreshable-properties.patch):

--- a/order-service/src/main/java/com/ankurm/shop/order/OrderProperties.java
+++ b/order-service/src/main/java/com/ankurm/shop/order/OrderProperties.java
@@ -2,7 +2,21 @@ package com.ankurm.shop.order;
 
 import org.springframework.boot.context.properties.ConfigurationProperties;
 
-/** Bound from shop.order.* , which comes from the config server (order-service.yml). */
+/**
+ * Bound from shop.order.* , which comes from the config server (order-service.yml).
+ * A class with setters, not a record: a refresh can only re-bind values into an object it can mutate.
+ */
 @ConfigurationProperties("shop.order")
-record OrderProperties(String currency, int maxQuantity) {
+class OrderProperties {
+    private String currency;
+    private int maxQuantity;
+
+    public void setCurrency(String currency) { this.currency = currency; }
+    public void setMaxQuantity(int maxQuantity) { this.maxQuantity = maxQuantity; }
+    public String getCurrency() { return currency; }
+    public int getMaxQuantity() { return maxQuantity; }
+
+    // the accessor names the rest of the service already uses
+    String currency() { return currency; }
+    int maxQuantity() { return maxQuantity; }
 }

Same edit after step 5 (41-config-notify-class.txt):

--- order-service log
INFO o.s.cloud.endpoint.RefreshEndpoint       : Refreshed keys : [shop.order.currency, shop.order.max-quantity]

--- what order-service uses after the refresh
$ curl localhost:8082/orders/config
{"currency":"USD","maxQuantity":3}

Check this before trusting any refresh. “Refreshed keys” means the environment changed. It does not mean your object did. Assert the value through the application, as above. I ran this on 2026.0.0 only; nothing here suggests it is specific to the new train.

Going deeper

Config, OpenFeign, Stream and the rest

Native config repository: with several labels, the last one now wins

A label selects a version or folder of configuration. If a client asks for two at once (a,b) from a native (file system) repository, 2026.0 makes the later label take precedence, as Git-backed repositories do. A profile-specific file in the earlier label used to win.

The same two files on both trains (43-native-multi-label.txt):

=== Spring Cloud 2025.1.5
  wins   from a/app-prod.yml
         from b/app.yml

=== Spring Cloud 2026.0.0
  wins   from b/app.yml
         from a/app-prod.yml

=== Spring Cloud 2026.0.0 + spring.cloud.config.server.native.last-label-wins=false
  wins   from a/app-prod.yml
         from b/app.yml

spring.cloud.config.server.native.last-label-wins=false restores the old order. Other Config additions in the announcement, which I did not run: OAuth 2 for config clients, Google Cloud Storage as a backend, Azure DevOps workload identity, fetching files as a Resource, and a public ConfigServerRestClientHolder. The metadata diff also shows spring.cloud.config.retry.use-random-policy newly deprecated.

OpenFeign: nested query objects are opt-in

The announcement says nested @SpringQueryMap objects are sent as nested query parameters. Upgrading alone changed nothing in my run; you have to turn it on.

A record containing a record, a list and a map (30-openfeign-querymap.txt):

=== Boot 4.1.3 / Spring Cloud 2025.1.5
query string received: price=Price[min=10, max=200]&text=dock&tags=usb&tags=hub&attrs={colour=black}
feign-core-13.6.1.jar
spring-cloud-openfeign-core-5.0.4.jar

=== Boot 4.2.0 / Spring Cloud 2026.0.0
query string received: price=Price[min=10, max=200]&text=dock&tags=usb&tags=hub&attrs={colour=black}
feign-core-13.17.jar
spring-cloud-openfeign-core-5.1.0.jar

=== Boot 4.2.0 / Spring Cloud 2026.0.0 + spring.cloud.openfeign.client.config.default.nested-query-map-enabled=true
query string received: price.min=10&price.max=200&text=dock&tags=usb&tags=hub&attrs[colour]=black

The property is spring.cloud.openfeign.client.config.<name>.nested-query-map-enabled. Before enabling it, check that the receiving service expects price.min. Feign itself resolved to 13.17 here (the announcement says 13.14). For the basics, see OpenFeign on Spring Boot 4.

Stream, Circuit Breaker, Vault, Kubernetes

Stream now includes Bus. Both releases fix CVE-2026-59441, where the Kafka binder’s trusted-package check also admitted subpackages; if you listed a parent package and relied on that, test your deserialization. Circuit Breaker moves to Resilience4J 2.4.0 and Vault to Spring Vault 4.1.0. Kubernetes gains high availability and native images for the configuration watcher, with Fabric8 8.0.0 and the Kubernetes Java client 27.0.0. Apart from the shop’s Resilience4J circuit breaker, none of this paragraph was run.

Configuration properties added and deprecated, 2025.1.5 to 2026.0.0

I diffed the metadata of thirteen Spring Cloud jars: no listed property was removed. The additions are three reactive discovery settings in Commons; OAuth 2, retry and resource-size settings in the Config client; GCS, GCP Parameter Manager, Azure identity and native.last-label-wins in Config Server; monitor.http.endpoints; seven WebSocket settings in Gateway WebMVC; and eureka.client.status.mapping. Nested map entries such as per-client OpenFeign settings do not appear in this metadata. Full diff: 02-properties-diff.txt, made by props-diff.py.

Going deeper

Your upgrade checklist

  1. Deploy 2025.1.5 first. In staging, send a request from outside your trusted-proxy pattern and compare what your upstream receives.
  2. Move Boot to 4.2.0 and Cloud to 2026.0.0 together.
  3. Compile. Declare reactor-extra or Kotlin yourself if the build shows you were borrowing them; update any reference to resilience4j-spring-boot3; drop a direct spring-cloud-bus-dependencies import.
  4. Confirm your trusted-proxy pattern covers your balancer, and check which client address actually arrives.
  5. If browsers open WebSockets through the gateway, configure allowed origins. Rerun tests for customised retry filters.
  6. If you use Bus only to push config refreshes, try the HTTP notifier where you have discovery, and alert on “Failed to notify instance”.
  7. Change a value and assert that the application uses it.
  8. If you ask a native config repository for several labels, or want nested Feign query maps, test those explicitly.

Should you upgrade now? If you are on 2025.1, take 2025.1.5 soon for the security fixes. Move to 2026.0.0 when your other dependencies are ready for Boot 4.2; for a project like this one the version bump itself was uneventful. Replacing Bus with the HTTP notifier is a separate decision: it makes sense if the broker exists only for refreshes and you already run discovery, and not if you depend on delivery to instances that are briefly unreachable.

Further reading

No Comments yet!

This site uses Akismet to reduce spam. Learn how your comment data is processed.