package com.kidgrow.ribbon.config;
|
|
import lombok.Data;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: RestTemplate 配置
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/21 13:31 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@Data
|
@ConfigurationProperties(prefix = "kidgrow.rest-template")
|
public class RestTemplateProperties {
|
/**
|
* 最大链接数
|
*/
|
private int maxTotal = 200;
|
/**
|
* 同路由最大并发数
|
*/
|
private int maxPerRoute = 50;
|
/**
|
* 读取超时时间 ms
|
*/
|
private int readTimeout = 35000;
|
/**
|
* 链接超时时间 ms
|
*/
|
private int connectTimeout = 10000;
|
}
|