feat(springboot3): 添加 RefreshScope 自动配置支持
- 新增 KenaitoRefreshAutoConfiguration 类,实现 ApplicationContextAware - 更新 spring.factories,注册 EnableAutoConfiguration - 与 Spring Boot 2 客户端保持一致,支持 @Value 和 @ConfigurationProperties 动态刷新
This commit is contained in:
@@ -14,7 +14,7 @@ local config = {
|
||||
env = os.getenv("KENAITO_PROFILE") or "daily",
|
||||
version = os.getenv("KENAITO_VERSION") or "latest",
|
||||
token = os.getenv("KENAITO_TOKEN") or "",
|
||||
syncInterval = tonumber(os.getenv("KENAITO_SYNC_INTERVAL") or "30"),
|
||||
syncInterval = tonumber(os.getenv("KENAITO_SYNC_INTERVAL") or "10"),
|
||||
cacheDir = os.getenv("KENAITO_CACHE_DIR") or ".",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user