fix(config): 统一配置键名并修复 EnvironmentInitializer 属性读取
- 统一使用 kenaito.config.baseUrl 替代 kenaito.config.base.url - 更新示例配置参数(appName、profile、数据库配置键名) - EnvironmentInitializer 添加从 Spring Environment 提取 kenaito.config.* 属性的逻辑 - .gitignore 添加 target 目录忽略规则
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Server
|
||||
server.port=8082
|
||||
server.port=8081
|
||||
|
||||
# Application
|
||||
app.name=kenaito-conf-springboot3-client-demo
|
||||
@@ -7,13 +7,15 @@ app.version=1.0.0
|
||||
|
||||
# Kenaito Config Center
|
||||
kenaito.config.baseUrl=http://localhost:8080
|
||||
kenaito.config.appName=demo
|
||||
kenaito.config.profile=dev
|
||||
kenaito.config.appName=kenaito-springboot-demo
|
||||
kenaito.config.profile=daily
|
||||
kenaito.config.version=latest
|
||||
kenaito.config.token=
|
||||
kenaito.config.sync-interval-seconds=30
|
||||
|
||||
# Local configs (will be overridden by remote if exists)
|
||||
db.url=jdbc:mysql://localhost:3306/local_db
|
||||
db.username=local_user
|
||||
custom.config1=local_value
|
||||
database.host=192.168.1.1
|
||||
database.port=8888
|
||||
database.name=xxxx
|
||||
database.user=xxxx
|
||||
database.password=xxxxxxxx
|
||||
|
||||
Reference in New Issue
Block a user