From 05529b64a1e201279b330aca119e62ffc35b666e Mon Sep 17 00:00:00 2001 From: wulin Date: Sun, 23 Mar 2025 21:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90nacos=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bootstrap-dev.yml | 4 ++-- .../src/main/resources/bootstrap-online.yml | 4 ++-- api-web/pom.xml | 12 ++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/api-web/api-interface/src/main/resources/bootstrap-dev.yml b/api-web/api-interface/src/main/resources/bootstrap-dev.yml index 44d7e0d..ff31138 100644 --- a/api-web/api-interface/src/main/resources/bootstrap-dev.yml +++ b/api-web/api-interface/src/main/resources/bootstrap-dev.yml @@ -18,8 +18,8 @@ spring: # 配置文件格式 file-extension: yml # 共享配置 - shared-configs: - - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + #shared-configs: + # - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} datasource: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver diff --git a/api-web/api-interface/src/main/resources/bootstrap-online.yml b/api-web/api-interface/src/main/resources/bootstrap-online.yml index 90beb35..1f4ca5d 100644 --- a/api-web/api-interface/src/main/resources/bootstrap-online.yml +++ b/api-web/api-interface/src/main/resources/bootstrap-online.yml @@ -12,8 +12,8 @@ spring: # 配置文件格式 file-extension: yml # 共享配置 - shared-configs: - - application.${spring.cloud.nacos.config.file-extension} + #shared-configs: + # - application.${spring.cloud.nacos.config.file-extension} datasource: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver diff --git a/api-web/pom.xml b/api-web/pom.xml index 5774938..e5ca013 100644 --- a/api-web/pom.xml +++ b/api-web/pom.xml @@ -40,6 +40,18 @@ spring-cloud-context ${spring.cloud.version} + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + 2021.0.1.0 + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + 2021.0.1.0 +