补充Nacos数据源配置加载
This commit is contained in:
@@ -40,6 +40,9 @@ spring:
|
|||||||
password: ${NACOS_PASSWORD:}
|
password: ${NACOS_PASSWORD:}
|
||||||
# Core 与 Gateway 共享的公共配置文件。
|
# Core 与 Gateway 共享的公共配置文件。
|
||||||
shared-configs:
|
shared-configs:
|
||||||
|
- data-id: datasource.yaml
|
||||||
|
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||||
|
refresh: true
|
||||||
- data-id: infra.yaml
|
- data-id: infra.yaml
|
||||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||||
refresh: true
|
refresh: true
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ spring:
|
|||||||
password: ${NACOS_PASSWORD:}
|
password: ${NACOS_PASSWORD:}
|
||||||
# Core 与 Gateway 共享的公共配置文件。
|
# Core 与 Gateway 共享的公共配置文件。
|
||||||
shared-configs:
|
shared-configs:
|
||||||
|
- data-id: datasource.yaml
|
||||||
|
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||||
|
refresh: true
|
||||||
- data-id: infra.yaml
|
- data-id: infra.yaml
|
||||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||||
refresh: true
|
refresh: true
|
||||||
|
|||||||
@@ -44,10 +44,18 @@ NACOS_PASSWORD=通过受控渠道保存
|
|||||||
|
|
||||||
- `core.yaml`
|
- `core.yaml`
|
||||||
- `gateway.yaml`
|
- `gateway.yaml`
|
||||||
|
- `datasource.yaml`
|
||||||
- `infra.yaml`
|
- `infra.yaml`
|
||||||
- `secret.yaml`
|
- `secret.yaml`
|
||||||
- `logging.yaml`
|
- `logging.yaml`
|
||||||
|
|
||||||
|
数据库连接配置应放在 `datasource.yaml`:
|
||||||
|
|
||||||
|
- `spring.datasource.url`
|
||||||
|
- `spring.datasource.username`
|
||||||
|
- `spring.datasource.password`
|
||||||
|
- `spring.datasource.driver-class-name`
|
||||||
|
|
||||||
七牛 Kodo 必填配置应放在 `infra.yaml` 和 `secret.yaml`:
|
七牛 Kodo 必填配置应放在 `infra.yaml` 和 `secret.yaml`:
|
||||||
|
|
||||||
- `qiniu.kodo.bucket-name`
|
- `qiniu.kodo.bucket-name`
|
||||||
|
|||||||
Reference in New Issue
Block a user