Skip to content

Commit

Permalink
feat: update uribuilderfactory
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Jul 20, 2024
1 parent 61e9f7c commit 6883c71
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.web.reactive.config.WebFluxConfigurer;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer;
import org.springframework.web.util.DefaultUriBuilderFactory;

@EnableWebFlux
@Configuration
Expand All @@ -17,7 +18,10 @@ public void configureArgumentResolvers(ArgumentResolverConfigurer configurer) {

@Bean("externalWebClient")
public WebClient externalServiceWebClient() {
DefaultUriBuilderFactory factory = new DefaultUriBuilderFactory();
factory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE);
return WebClient.builder()
.uriBuilderFactory(factory)
.codecs(clientCodecConfigurer -> {
clientCodecConfigurer
.defaultCodecs()
Expand Down

0 comments on commit 6883c71

Please sign in to comment.