On this page:
@Service
public class MyService {
private final WebClient webClient;
public MyService(WebClient.Builder webClientBuilder) {
this.webClient = webClientBuilder.baseUrl("http://example.org").build();
}
public Mono<Details> someRestCall(String name) {
return this.webClient.get().url("/{name}/details", name)
.retrieve().bodyToMono(Details.class);
}
}
this.webClient.get().url("/{name}/details", name)
should be uri
instead?
Comment From: philwebb
Good spot! Thanks for reporting the issue.
Comment From: wilkinsona
This is a duplicate of https://github.com/spring-projects/spring-boot/pull/14499. It has already been fixed in 2.0.6 and later.