feat(springboot3): 添加 RefreshScope 自动配置支持
- 新增 KenaitoRefreshAutoConfiguration 类,实现 ApplicationContextAware - 更新 spring.factories,注册 EnableAutoConfiguration - 与 Spring Boot 2 客户端保持一致,支持 @Value 和 @ConfigurationProperties 动态刷新
This commit is contained in:
@@ -27,7 +27,7 @@ async function createClient() {
|
||||
env: process.env.KENAITO_PROFILE || 'daily',
|
||||
version: process.env.KENAITO_VERSION || 'latest',
|
||||
token: process.env.KENAITO_TOKEN || '',
|
||||
syncInterval: parseInt(process.env.KENAITO_SYNC_INTERVAL || '30', 10),
|
||||
syncInterval: parseInt(process.env.KENAITO_SYNC_INTERVAL || '10', 10),
|
||||
cacheDir: process.env.KENAITO_CACHE_DIR || '.',
|
||||
});
|
||||
const c = new ConfigClient(cfg);
|
||||
|
||||
Reference in New Issue
Block a user