Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
24702 amit.gupta 1
package com.spice.profitmandi.common;
2
 
3
import org.springframework.context.annotation.Bean;
4
import org.springframework.context.annotation.Configuration;
5
import org.springframework.http.converter.ByteArrayHttpMessageConverter;
6
import org.springframework.web.client.RestTemplate;
7
 
8
@Configuration
9
public class BeansConfig {
10
 
11
	@Bean
12
	public RestTemplate restTemplate() {
13
		RestTemplate restTemplate = new RestTemplate();
14
		restTemplate.getMessageConverters().add(new ByteArrayHttpMessageConverter());
15
		return restTemplate;
16
	}
17
}