Files
spring-boot-demo/resttemplate-to-restclient/output/05-bridge-what-is-copied.txt
T

7 lines
556 B
Plaintext

# 05-bridge-what-is-copied (Spring Boot 4.2.0, JDK 25)
GET /whoami, what the server received
RestTemplate(JdkClientHttpRequestFactory + interceptor): x-request-id=abc-123 user-agent=Java-http-client/25.0.5.1
RestClient.create(thatTemplate) : x-request-id=abc-123 user-agent=Java-http-client/25.0.5.1
RestClient.create() (no bridge) : x-request-id=null user-agent=Java-http-client/25.0.5.1
GET /students/99 through the bridge, template had a custom ResponseErrorHandler -> StudentNotFoundException