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