Add boot42-preview module: Spring Boot 4.2.0-M2 vs 4.1.1 forwarded headers, AMQP starters, buildpack cache, RestTemplate removal warnings
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gth99spB1CzQmBFofXmU4Z
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import org.springframework.boot.restclient.RestTemplateBuilder;
|
||||
import org.springframework.boot.resttestclient.TestRestTemplate;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
/** Not part of the build: compiled by scripts/capture-facts.sh so the compiler's own words are committed. */
|
||||
class UsesRestTemplate {
|
||||
|
||||
RestTemplate viaBuilder(RestTemplateBuilder builder) {
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
TestRestTemplate viaTest(TestRestTemplate t) {
|
||||
return t;
|
||||
}
|
||||
|
||||
RestTemplate plain() {
|
||||
return new RestTemplate();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user