aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/main/java/org/onap/so/client/RestTemplateConfig.java
blob: e71510e4a146694c594a4b1d10861838ffe65c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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());
	}
}