Add resttemplate-to-restclient module: RestTemplate deprecation on Spring Framework 7.1 / Boot 4.2.0 vs 4.1.3, method mapping, exchange() trap, bridge URI encoding, RestTestClient, OpenRewrite recipe run, with real transcripts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7M7FEdeEm3APj16Bu
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user