I am trying to use the WebClient to call my restServices. Previously on RestTemplate, we had ClientHttpRequestInterceptor defined and
WebClient
RestTemplate
ClientHttpRequestInterceptor
You can use an ExchangeFilterFunction and configure it on the WebClient instance you’re using. See the Spring Framework reference documentation for more on that.
ExchangeFilterFunction