From 85475bc3cdcaa9a2046ae7c8c368f3a8c0b5e41e Mon Sep 17 00:00:00 2001 From: jianghao <332515344@qq.com> Date: Wed, 7 Jan 2026 17:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5nacos=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- timeline-gateway-service/pom.xml | 6 ++++++ .../src/main/resources/bootstrap.properties | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/timeline-gateway-service/pom.xml b/timeline-gateway-service/pom.xml index 8d317f3..e4a5b67 100644 --- a/timeline-gateway-service/pom.xml +++ b/timeline-gateway-service/pom.xml @@ -18,6 +18,12 @@ + + + org.springframework.cloud + spring-cloud-starter-bootstrap + + org.springframework.cloud diff --git a/timeline-gateway-service/src/main/resources/bootstrap.properties b/timeline-gateway-service/src/main/resources/bootstrap.properties index 8adb8db..14a7347 100644 --- a/timeline-gateway-service/src/main/resources/bootstrap.properties +++ b/timeline-gateway-service/src/main/resources/bootstrap.properties @@ -1,5 +1,4 @@ -spring.config.import=nacos: -spring.cloud.nacos.config.import-check.enabled=false +spring.config.import=optional:nacos: spring.cloud.nacos.discovery.server-addr=host.docker.internal:8848 spring.cloud.nacos.config.enabled=false spring.cloud.nacos.discovery.namespace=public