From 9b3dcb30e26ce28d0d91801009d0ac558d8aa4e5 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Tue, 29 Apr 2025 19:40:59 +0200 Subject: [PATCH] Make HttpServiceGroupAdapter implementations @Reflective. Signed-off-by: Olga Maciaszek-Sharma --- .../web/client/support/RestClientHttpServiceGroupAdapter.java | 2 ++ .../client/support/WebClientHttpServiceGroupAdapter.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spring-web/src/main/java/org/springframework/web/client/support/RestClientHttpServiceGroupAdapter.java b/spring-web/src/main/java/org/springframework/web/client/support/RestClientHttpServiceGroupAdapter.java index a48497c56be5..16288b0898d5 100644 --- a/spring-web/src/main/java/org/springframework/web/client/support/RestClientHttpServiceGroupAdapter.java +++ b/spring-web/src/main/java/org/springframework/web/client/support/RestClientHttpServiceGroupAdapter.java @@ -16,6 +16,7 @@ package org.springframework.web.client.support; +import org.springframework.aot.hint.annotation.Reflective; import org.springframework.web.client.RestClient; import org.springframework.web.service.invoker.HttpExchangeAdapter; import org.springframework.web.service.registry.HttpServiceGroupAdapter; @@ -28,6 +29,7 @@ * @since 7.0 */ @SuppressWarnings("unused") +@Reflective public class RestClientHttpServiceGroupAdapter implements HttpServiceGroupAdapter { @Override diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/support/WebClientHttpServiceGroupAdapter.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/support/WebClientHttpServiceGroupAdapter.java index f8dae4850c19..b54e6c3cd3f6 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/support/WebClientHttpServiceGroupAdapter.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/support/WebClientHttpServiceGroupAdapter.java @@ -16,6 +16,7 @@ package org.springframework.web.reactive.function.client.support; +import org.springframework.aot.hint.annotation.Reflective; import org.springframework.web.reactive.function.client.WebClient; import org.springframework.web.service.invoker.HttpExchangeAdapter; import org.springframework.web.service.registry.HttpServiceGroupAdapter; @@ -28,6 +29,7 @@ * @since 7.0 */ @SuppressWarnings("unused") +@Reflective public class WebClientHttpServiceGroupAdapter implements HttpServiceGroupAdapter { @Override