package cn.ey.biz.module.external.autoconfigure;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;

import cn.ey.biz.module.external.common.TextPlainJackson2HttpMessageConverter;

/**
 * 外部接口Configuration
 *
 */

@Configuration
@ComponentScan("cn.ey.biz.module.external")
@EnableFeignClients(basePackages = "cn.ey.biz.module.external.api")
public class ExternalAutoConfiguration {
	
	@SuppressWarnings("rawtypes")
	@Bean
    public HttpMessageConverter customConverter() {
    	TextPlainJackson2HttpMessageConverter converter = new TextPlainJackson2HttpMessageConverter();
        return converter;
    }

}
