fun.fengwk.convention4j.springboot.starter.webflux.webclient.WebClientProperties Maven / Gradle / Ivy
package fun.fengwk.convention4j.springboot.starter.webflux.webclient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.time.Duration;
/**
* @author fengwk
*/
@Data
@ConfigurationProperties(prefix = "convention4j.webflux.web-client")
public class WebClientProperties {
/**
* 连接超时
*/
private int connectTimeout = 1000;
/**
* 整体响应超时
*/
private Duration responseTimeout = Duration.ofMillis(5000);
/**
* 忽略错误的http状态码返回,默认情况下WebClient会在检查到错误状态码时抛出异常
*/
private boolean ignoreErrorHttpStatus = false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy