- Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Shouldn't the ProxyHttpServiceGroup::createProxies method set the proxyFactoryBuilder's exchangeAdapter only if it isn't set already?
As already reported in spring-projects/spring-boot#47855, I'm trying to integrate my existing RestClient and WebClient auto-configuration with what is added to Boot 4.0.0-RC1. However, whatever I configure with the following is ignored:
@Configuration @ImportHttpServices(group = "bidule", types = {BiduleApi.class}) @ImportHttpServices(group = "machin", types = {MachinApi.class}) public class RestConfiguration { @Bean RestClientHttpServiceGroupConfigurer groupConfigurer(RestClient biduleClient, RestClient machinClient) { return groups -> { groups.forEachGroup((group, clientBuilder, factoryBuilder) -> { if ("bidule".equals(group.name())) { factoryBuilder.exchangeAdapter(RestClientAdapter.create(biduleClient)); } else if ("machin".equals(group.name())) { factoryBuilder.exchangeAdapter(RestClientAdapter.create(machinClient)); } }); }; } }Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement