Bael 5884 - correction (#13276)

* BAEL-5884 - URI encoding with Rest Template

* BAEL-5884 - URI encoding with Rest Template - indentation corrected

* BAEL-5884 - code correction for rest template config
This commit is contained in:
Abhinav Pandey 2023-01-11 22:44:58 +05:30 committed by GitHub
parent 7db81e56ea
commit 7a202296a7
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ public class RestTemplateConfig {
RestTemplate restTemplate = new RestTemplate();
DefaultUriBuilderFactory defaultUriBuilderFactory = new DefaultUriBuilderFactory();
defaultUriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.VALUES_ONLY);
restTemplate.setUriTemplateHandler(new DefaultUriBuilderFactory());
restTemplate.setUriTemplateHandler(defaultUriBuilderFactory);
return restTemplate;
}
}