فهرست منبع

修改网关配置

liying 4 هفته پیش
والد
کامیت
e9a69cf2e3
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      siwei-gateway/src/main/resources/bootstrap.yml

+ 4 - 4
siwei-gateway/src/main/resources/bootstrap.yml

@@ -6,7 +6,7 @@ server:
 spring: 
   application:
     # 应用名称
-    name: siwei-gateway
+    name: gateway
   profiles:
     # 环境配置
     active: dev
@@ -15,14 +15,14 @@ spring:
       discovery:
         # 服务注册地址
         enabled: true
-        namespace: siwei
+        namespace: one_code
         server-addr: 127.0.0.1:8848
         username: nacos
         password: nacos
       config:
         # 配置中心地址
         enabled: true
-        namespace: siwei
+        namespace: one_code
         server-addr: 127.0.0.1:8848
         username: nacos
         password: nacos
@@ -42,7 +42,7 @@ spring:
         ds1:
           nacos:
             server-addr: 127.0.0.1:8848
-            dataId: sentinel-siwei-gateway
+            dataId: sentinel-gateway
             groupId: DEFAULT_GROUP
             data-type: json
             rule-type: gw-flow