You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varrestClient = RestClient.builder()
// .requestFactory(new HttpComponentsClientHttpRequestFactory()) not this because I'm doing this for tracing because of https://github.com/spring-projects/spring-framework/issues/32783 which might be better solved by Spring Boot
.baseUrl("http://localhost:" + this.port)
.messageConverters(converters -> converters)
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "/authorize": Target host is not specified
Running with Spring Boot v3.2.5, Spring v6.1.6
The text was updated successfully, but these errors were encountered:
There's no test-specific support for RestClient. What's being injected into the test class is the "main" RestClient.Builder that's auto-configured by RestClientAutoConfiguration. We can't change it in a test-specific way as it may break any consumers in main application code.
I went scavenging the documentation couldn't find an annotation to configure
RestClient.Builder
although it does autowire it...this is what I tried
I expected it to be equivalent to
Running with Spring Boot v3.2.5, Spring v6.1.6
The text was updated successfully, but these errors were encountered: