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:
Claude
2026-11-21 21:26:48 +05:30
parent 5f85ec8d53
commit cbcfb05e35
77 changed files with 2187 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Reads the HTTP-client properties from spring-configuration-metadata.json inside the published
# spring-boot-http-client jars: the plural spring.http.clients.* keys and the deprecated singular ones.
set -u
cd "$(dirname "$0")/.."
OUT=output/23-http-client-properties.txt
{
echo "# 23-http-client-properties (spring-configuration-metadata.json, spring-boot-http-client jars)"
for v in 4.1.3 4.2.0; do
echo
echo "Spring Boot $v"
unzip -p "$HOME/.m2/repository/org/springframework/boot/spring-boot-http-client/$v/spring-boot-http-client-$v.jar" META-INF/spring-configuration-metadata.json \
| python3 -c "
import json,sys
for p in json.load(sys.stdin)['properties']:
n=p['name']
if n in ('spring.http.clients.connect-timeout','spring.http.clients.read-timeout','spring.http.client.connect-timeout','spring.http.client.read-timeout'):
d=p.get('deprecation')
print(' %-40s %s' % (n, 'DEPRECATED' + (' -> ' + d['replacement'] if d and 'replacement' in d else '') if d else 'current'))
"
done
} > "$OUT"
cat "$OUT"