From 46320ff4282fe29eae14ca991c31f99da63117f2 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 29 Oct 2024 15:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/bootstrap-sgzb_bns_local.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bonus-modules/bonus-file/src/main/resources/bootstrap-sgzb_bns_local.yml diff --git a/bonus-modules/bonus-file/src/main/resources/bootstrap-sgzb_bns_local.yml b/bonus-modules/bonus-file/src/main/resources/bootstrap-sgzb_bns_local.yml new file mode 100644 index 0000000..807d698 --- /dev/null +++ b/bonus-modules/bonus-file/src/main/resources/bootstrap-sgzb_bns_local.yml @@ -0,0 +1,21 @@ +# Tomcat +server: + port: 9300 + +# Spring +spring: + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_bns + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_bns + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}