diff options
author | Rob Daugherty <rd472p@att.com> | 2018-09-13 19:37:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-13 19:37:57 +0000 |
commit | 58a00a16d7df65f83f2a90893a8af9b717950d11 (patch) | |
tree | 2da71ccf977e9108ef026a28b2c91ffd1103af91 /common/src/main/java/org/onap | |
parent | 3e5b564f4c1e1f731f2e2502bbc2ce868f7cedec (diff) | |
parent | e36dcc866563aefaca7edff0f894860f3f27a31b (diff) |
Merge "Fix threading problems in requestdbclient"
Diffstat (limited to 'common/src/main/java/org/onap')
-rw-r--r-- | common/src/main/java/org/onap/so/client/RestTemplateConfig.java | 15 |
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()); + } +} |