Class WebClientConfig

java.lang.Object
com.dani.bff.config.WebClientConfig

@Configuration public class WebClientConfig extends Object
Provides WebClient instances scoped to each downstream service.
  • 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)