package com.kidgrow.ribbon;
|
|
import com.kidgrow.ribbon.config.RestTemplateProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.cloud.netflix.ribbon.DefaultPropertiesFactory;
|
import org.springframework.context.annotation.Bean;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: Ribbon 扩展类配置
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/21 13:31 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@EnableConfigurationProperties(RestTemplateProperties.class)
|
public class RibbonAutoConfigure {
|
@Bean
|
public DefaultPropertiesFactory defaultPropertiesFactory() {
|
return new DefaultPropertiesFactory();
|
}
|
}
|