Skip to content

Commit 8061b4e

Browse files
ryanjbaxterqnnn
authored andcommitted
Fixing build errors with Spring Boot 4.0.1
Signed-off-by: qnnn <qiunan@cmbchina.com>
1 parent 7ffe5e2 commit 8061b4e

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

spring-cloud-context/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<name>Spring Cloud Context</name>
1616
<description>Spring Cloud Context</description>
1717
<dependencies>
18+
<dependency>
19+
<groupId>org.springframework.boot</groupId>
20+
<artifactId>spring-boot-restclient</artifactId>
21+
</dependency>
1822
<dependency>
1923
<groupId>org.springframework.boot</groupId>
2024
<artifactId>spring-boot-configuration-processor</artifactId>

spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/SubsetServiceInstanceListSupplier.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.util.List;
2222
import java.util.Random;
2323

24+
import org.jspecify.annotations.Nullable;
2425
import reactor.core.publisher.Flux;
2526

2627
import org.springframework.cloud.client.ServiceInstance;
@@ -58,7 +59,12 @@ public SubsetServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, P
5859

5960
@Override
6061
public Flux<List<ServiceInstance>> get() {
61-
return get(null);
62+
return get(new Request() {
63+
@Override
64+
public @Nullable Object getContext() {
65+
return Request.super.getContext();
66+
}
67+
});
6268
}
6369

6470
@Override

0 commit comments

Comments
 (0)