com.github.dc.invoke.config.RestTemplateProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dc-invoke Show documentation
Show all versions of dc-invoke Show documentation
dc-invoke project for Spring Boot
package com.github.dc.invoke.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
*
* RestTemplate 配置类
*
*
* @author wpyuan 2020/04/15 14:53
*/
@Data
@ConfigurationProperties(prefix = "rest-template")
public class RestTemplateProperty {
private static final int DEFAULT_CONNECT_TIMEOUT = 60000;
private static final int DEFAULT_READ_TIMEOUT = 60000;
private int connectTimeout = DEFAULT_CONNECT_TIMEOUT;
private int readTimeout = DEFAULT_READ_TIMEOUT;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy