summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorBenjamin, Max (mb388a) <mb388a@us.att.com>2018-09-12 16:44:44 -0400
committerBenjamin, Max (mb388a) <mb388a@us.att.com>2018-09-12 16:45:04 -0400
commite36dcc866563aefaca7edff0f894860f3f27a31b (patch)
treec5cfb4e56b8abaa718f9afd08370de944d05fd87 /common
parent67b21f3bbf54828093fd27634d4d090111c04502 (diff)
Fix threading problems in requestdbclient
Disable Flakey tests, that do not run well Resolve bean conflict, move to common project Fix port in properties file for replacement Fix threading problems in requestdbclient Change-Id: I12d145863152d302da4fa0854db1c85286266e02 Issue-ID: SO-1034 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/org/onap/so/client/RestTemplateConfig.java15
1 files changed, 15 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
new file mode 100644
index 0000000000..e71510e4a1
--- /dev/null
+++ b/common/src/main/java/org/onap/so/client/RestTemplateConfig.java
@@ -0,0 +1,15 @@
+package org.onap.so.client;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
+import org.springframework.web.client.RestTemplate;
+
+@Configuration
+public class RestTemplateConfig {
+
+ @Bean
+ public RestTemplate restTemplate() {
+ return new RestTemplate( new HttpComponentsClientHttpRequestFactory());
+ }
+}