package shop.alien.config.feign;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 从 Nacos读取Feign配置
 *
 * @author ssk
 * @version 1.0
 * @date 2025/3/24 14:18
 */
@Data
@Component
@RefreshScope
public class FeignNacosConfig {

    @Value("${feign.client.config.default.connect-timeout}")
    private int connectTimeout;

    @Value("${feign.client.config.default.read-timeout}")
    private int readTimeout;

}
