Package com.dani.bff.config
Class WebClientConfig
java.lang.Object
com.dani.bff.config.WebClientConfig
Provides WebClient instances scoped to each downstream service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.reactive.function.client.WebClientproductServiceWebClient(org.springframework.web.reactive.function.client.WebClient.Builder builder, DownstreamProperties properties) org.springframework.web.reactive.function.client.WebClientuserServiceWebClient(org.springframework.web.reactive.function.client.WebClient.Builder builder, DownstreamProperties properties)
-
Constructor Details
-
WebClientConfig
public WebClientConfig()
-
-
Method Details
-
userServiceWebClient
@Bean @Qualifier("userServiceWebClient") public org.springframework.web.reactive.function.client.WebClient userServiceWebClient(org.springframework.web.reactive.function.client.WebClient.Builder builder, DownstreamProperties properties) -
productServiceWebClient
@Bean @Qualifier("productServiceWebClient") public org.springframework.web.reactive.function.client.WebClient productServiceWebClient(org.springframework.web.reactive.function.client.WebClient.Builder builder, DownstreamProperties properties)
-