From bf7be468502db6b5521c5c1b272f0f7e228cd5da Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Wed, 28 Jun 2023 11:46:13 +0800 Subject: [PATCH] init2.0 --- op-gateway/src/main/resources/bootstrap.yml | 2 +- op-modules/op-gen/src/main/resources/bootstrap.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/op-gateway/src/main/resources/bootstrap.yml b/op-gateway/src/main/resources/bootstrap.yml index 287c6176..3cd5cb65 100644 --- a/op-gateway/src/main/resources/bootstrap.yml +++ b/op-gateway/src/main/resources/bootstrap.yml @@ -38,7 +38,7 @@ spring: datasource: ds1: nacos: - server-addr: localhost:8848 + server-addr: 140.249.53.142:8848 dataId: sentinel-op-gateway groupId: DEFAULT_GROUP data-type: json diff --git a/op-modules/op-gen/src/main/resources/bootstrap.yml b/op-modules/op-gen/src/main/resources/bootstrap.yml index f866a98f..24e79149 100644 --- a/op-modules/op-gen/src/main/resources/bootstrap.yml +++ b/op-modules/op-gen/src/main/resources/bootstrap.yml @@ -3,7 +3,7 @@ server: port: 9202 # Spring -spring: +spring: application: # 应用名称 name: op-gen @@ -13,11 +13,14 @@ spring: cloud: nacos: discovery: + namespace: zxl # 服务注册地址 - server-addr: localhost:8848 + server-addr: 140.249.53.142:8848 config: + #命名空间 + # group: local # 配置中心地址 - server-addr: localhost:8848 + server-addr: 140.249.53.142:8848 # 配置文件格式 file-extension: yml # 共享配置