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,7 @@
|
||||
# 08-interceptor-reads-body (Spring Boot 4.1.3, JDK 25)
|
||||
GET /text (server body: "plain text body"); the interceptor reads the body to log it
|
||||
RestTemplate, default factory -> caller got null
|
||||
RestTemplate + BufferingClientHttpRequestFactory -> caller got "plain text body"
|
||||
RestClient, interceptor only -> caller got null
|
||||
RestClient + bufferContent((uri, method) -> true) -> caller got "plain text body"
|
||||
interceptor logged: [plain text body, plain text body, plain text body, plain text body]
|
||||
Reference in New Issue
Block a user