| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package com.lingyue.ai.config;
- import lombok.Data;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.context.annotation.Configuration;
- /**
- * NER 客户端配置
- *
- * @author lingyue
- * @since 2026-01-19
- */
- @Data
- @Configuration
- @ConfigurationProperties(prefix = "ner.python-service")
- public class NerClientConfig {
- /**
- * Python NER 服务地址
- */
- private String url = "http://localhost:8001";
- /**
- * 请求超时时间(毫秒)
- */
- private int timeout = 60000;
- /**
- * 连接超时时间(毫秒)
- */
- private int connectTimeout = 5000;
- /**
- * 最大重试次数
- */
- private int maxRetries = 3;
- /**
- * 重试间隔(毫秒)
- */
- private int retryInterval = 1000;
- }
|