aboutsummaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
authorSteve Smokowski <ss835w@att.com>2019-03-27 20:09:36 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-27 20:09:36 +0000
commit4fb374365155cbacd7a01514197a4a65890e3f1d (patch)
tree19dab1d406c0ddf96bd2bae656f38948a3742c82 /common/src
parent96fefb972e92f242bbcad21fe1a3f22d78c555d4 (diff)
parentbe2e8c565b7976b81350e890df40c8d145340c28 (diff)
Merge "set a default bean for RestTemplate"
Diffstat (limited to 'common/src')
-rw-r--r--common/src/main/java/org/onap/so/client/RestTemplateConfig.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/main/java/org/onap/so/client/RestTemplateConfig.java b/common/src/main/java/org/onap/so/client/RestTemplateConfig.java
index 34ad6ef758..0633ae74c9 100644
--- a/common/src/main/java/org/onap/so/client/RestTemplateConfig.java
+++ b/common/src/main/java/org/onap/so/client/RestTemplateConfig.java
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Primary;
import org.springframework.http.client.BufferingClientHttpRequestFactory;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;
@@ -39,6 +40,7 @@ public class RestTemplateConfig {
private HttpComponentsClientConfiguration httpComponentsClientConfiguration;
@Bean
+ @Primary
public RestTemplate restTemplate() {
final RestTemplate restTemplate = new RestTemplate();
restTemplate