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,10 @@
|
||||
# 03-error-handler-migration (Spring Boot 4.1.3, JDK 25)
|
||||
GET /students/99 with a custom 404 translation
|
||||
RestTemplate.setErrorHandler(handler) -> StudentNotFoundException: no such resource: /students/99
|
||||
builder.defaultStatusHandler(<same handler>) -> StudentNotFoundException: no such resource: /students/99
|
||||
builder.defaultStatusHandler(predicate, lambda) -> StudentNotFoundException: no such resource: /students/99
|
||||
retrieve().onStatus(predicate, lambda) per call -> StudentNotFoundException: no such resource: /students/99
|
||||
GET /boom (500), not claimed by the custom handler
|
||||
RestTemplate -> org.springframework.web.client.HttpServerErrorException$InternalServerError
|
||||
defaultStatusHandler(<handler>) -> org.springframework.web.client.HttpServerErrorException$InternalServerError
|
||||
defaultStatusHandler(pred, lambda)-> org.springframework.web.client.HttpServerErrorException$InternalServerError
|
||||
Reference in New Issue
Block a user