Given an http service client and a group configuration in the application.yml that includes an API Version, the version is no longer sent by the client after upgrading to Spring Boot 4.0.4. The previous version works as expected.
spring:
http:
clients:
connect-timeout: 3s
read-timeout: 10s
redirects: dont-follow
imperative:
factory: http-components
serviceclient:
todo:
base-url: http://todo/api
apiversion:
default: 1.0
insert:
header: X-Version
A minimal example reproducing the issue can be found here (branch http-service-client-4.0.4) :
The test succeeds with Spring Boot 4.0.3, but fails with 4.0.4
Given an http service client and a group configuration in the
application.ymlthat includes an API Version, the version is no longer sent by the client after upgrading to Spring Boot 4.0.4. The previous version works as expected.A minimal example reproducing the issue can be found here (branch http-service-client-4.0.4) :
The test succeeds with Spring Boot 4.0.3, but fails with 4.0.4