feat(clients): 各客户端支持环境变量配置,Spring Boot 2 客户端优化选择性刷新
- Dockerfile.springboot2: 更换基础镜像为阿里云私有镜像 - .NET/SpringBoot2 demo: 配置项改为从环境变量读取,支持 Docker 传参 - Spring Boot 2 客户端: @Value/@ConfigurationProperties 刷新优化为只刷新受变更 key 影响的字段 - README_DOCKERFILE.md: 标注 .NET 客户端 Docker 测试通过
This commit is contained in:
@@ -6,12 +6,12 @@ app.name=kenaito-conf-springboot2-client-demo
|
||||
app.version=1.0.0
|
||||
|
||||
# Kenaito Config Center
|
||||
kenaito.config.baseUrl=http://localhost:8080
|
||||
kenaito.config.appName=kenaito-springboot-demo
|
||||
kenaito.config.profile=daily
|
||||
kenaito.config.version=latest
|
||||
kenaito.config.token=
|
||||
kenaito.config.sync-interval-seconds=10
|
||||
kenaito.config.baseUrl=${KENAITO_BASE_URL:http://localhost:8080}
|
||||
kenaito.config.appName=${KENAITO_APP_NAME:kenaito-springboot-demo}
|
||||
kenaito.config.profile=${KENAITO_ENV:daily}
|
||||
kenaito.config.version=${KENAITO_VERSION:latest}
|
||||
kenaito.config.token=${KENAITO_TOKEN:}
|
||||
kenaito.config.sync-interval-seconds=${KENAITO_SYNC_INTERVAL:10}
|
||||
|
||||
# Local configs (will be overridden by remote if exists)
|
||||
database.host=192.168.1.1
|
||||
|
||||
Reference in New Issue
Block a user