009374ed
Hugiee.Liu
fea: create
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.objecteye.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* @author: liuhaoyu
* @date: 2023/6/28
*/
@Data
@Component
@ConfigurationProperties(prefix = "config.rest")
public class RestConfigurationProperties {
/**
* 连接超时时间
*/
private int connectionTimeOut = 5 * 1000;
/**
* 等待超时时间
*/
private int readTimeOut = 30 * 1000;
}
|