From e36dcc866563aefaca7edff0f894860f3f27a31b Mon Sep 17 00:00:00 2001 From: "Benjamin, Max (mb388a)" Date: Wed, 12 Sep 2018 16:44:44 -0400 Subject: 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) --- .../main/java/org/onap/so/client/RestTemplateConfig.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 common/src/main/java/org/onap/so/client/RestTemplateConfig.java (limited to 'common') 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()); + } +} -- cgit 1.2.3-korg