This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 12980ed877 [type:feature] support examples namespace (#5786)
12980ed877 is described below

commit 12980ed8773656ecb9059cfefa96eadc1bfdb829
Author: aias00 <liuhon...@apache.org>
AuthorDate: Wed Nov 20 15:46:57 2024 +0800

    [type:feature] support examples namespace (#5786)
---
 .../src/main/resources/application.yml                                  | 1 +
 .../src/main/resources/shenyu.xml                                       | 1 +
 .../src/main/resources/application.yml                                  | 1 +
 shenyu-examples/shenyu-examples-grpc/src/main/resources/application.yml | 1 +
 .../shenyu-examples-http-swagger3/src/main/resources/application.yml    | 1 +
 .../shenyu-examples-https/src/main/resources/application.yml            | 1 +
 .../shenyu-examples-motan-service/src/main/resources/application.yml    | 1 +
 .../src/main/resources/application.yml                                  | 1 +
 .../shenyu-examples-sdk-feign/src/main/resources/application.yaml       | 1 +
 .../src/main/resources/application.yaml                                 | 1 +
 .../src/main/resources/application.yml                                  | 1 +
 .../shenyu-examples-sdk-http/src/main/resources/application.yaml        | 1 +
 .../src/main/resources/application.yaml                                 | 1 +
 .../src/main/resources/application.yml                                  | 1 +
 .../shenyu-examples-sofa-service/src/main/resources/application.yml     | 1 +
 .../shenyu-examples-springcloud/src/main/resources/application.yml      | 1 +
 .../shenyu-examples-springmvc/src/main/resources/context/shenyu.xml     | 2 ++
 shenyu-examples/shenyu-examples-tars/src/main/resources/application.yml | 1 +
 .../src/main/resources/application.yml                                  | 1 +
 .../src/main/resources/application.yml                                  | 1 +
 .../src/main/resources/application.yml                                  | 1 +
 21 files changed, 22 insertions(+)

diff --git 
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-annotation/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-annotation/src/main/resources/application.yml
index c9df2aecf5..470834419c 100644
--- 
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-annotation/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-annotation/src/main/resources/application.yml
@@ -23,6 +23,7 @@ spring:
     allow-bean-definition-overriding: true
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/src/main/resources/shenyu.xml
 
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/src/main/resources/shenyu.xml
index b0e6560d00..b47cb03ec8 100644
--- 
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/src/main/resources/shenyu.xml
+++ 
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service-xml/src/main/resources/shenyu.xml
@@ -54,6 +54,7 @@
                 <entry key="dubbo" value-ref="clientPropertiesConfig"/>
             </map>
         </property>
+        <property name="namespace" 
value="649330b6-c2d7-4edc-be8e-8a54df9eb385" />
     </bean>
 
     <!-- for other kind of register method, please use related 
ShenyuClientRegisterRepository -->
diff --git 
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/src/main/resources/application.yml
index a6971630ed..4a7c52e87a 100644
--- 
a/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-dubbo/shenyu-examples-apache-dubbo-service/src/main/resources/application.yml
@@ -26,6 +26,7 @@ dubbo:
     address: zookeeper://localhost:2181
     
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-grpc/src/main/resources/application.yml 
b/shenyu-examples/shenyu-examples-grpc/src/main/resources/application.yml
index 2c8b64d71a..d617177a84 100644
--- a/shenyu-examples/shenyu-examples-grpc/src/main/resources/application.yml
+++ b/shenyu-examples/shenyu-examples-grpc/src/main/resources/application.yml
@@ -25,6 +25,7 @@ spring:
 
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-http-swagger3/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-http-swagger3/src/main/resources/application.yml
index f220894363..fa8450561d 100644
--- 
a/shenyu-examples/shenyu-examples-http-swagger3/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-http-swagger3/src/main/resources/application.yml
@@ -22,6 +22,7 @@ server:
     context-path: /http-swagger3 # should be the same as 
shenyu.client.http.contextPath
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://127.0.0.1:9095
diff --git 
a/shenyu-examples/shenyu-examples-https/src/main/resources/application.yml 
b/shenyu-examples/shenyu-examples-https/src/main/resources/application.yml
index 2d5b69ec10..98a6470988 100644
--- a/shenyu-examples/shenyu-examples-https/src/main/resources/application.yml
+++ b/shenyu-examples/shenyu-examples-https/src/main/resources/application.yml
@@ -24,6 +24,7 @@ server:
     key-store-type: PKCS12
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/src/main/resources/application.yml
index ca65d491a5..ee424a0961 100644
--- 
a/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-motan/shenyu-examples-motan-service/src/main/resources/application.yml
@@ -24,6 +24,7 @@ spring:
     name: motan-exmaples
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-dubbo/shenyu-examples-sdk-apache-dubbo-consumer/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-dubbo/shenyu-examples-sdk-apache-dubbo-consumer/src/main/resources/application.yml
index 5bf348aa9f..0ecbc00824 100644
--- 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-dubbo/shenyu-examples-sdk-apache-dubbo-consumer/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-dubbo/shenyu-examples-sdk-apache-dubbo-consumer/src/main/resources/application.yml
@@ -19,6 +19,7 @@ server:
     max-http-form-post-size: 100MB
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-feign/src/main/resources/application.yaml
 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-feign/src/main/resources/application.yaml
index 9f61ce08ba..31a7a66dc2 100644
--- 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-feign/src/main/resources/application.yaml
+++ 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-feign/src/main/resources/application.yaml
@@ -19,6 +19,7 @@ server:
     max-http-form-post-size: 100MB
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-consumer/src/main/resources/application.yaml
 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-consumer/src/main/resources/application.yaml
index cdf07fd78d..d4badcd05c 100644
--- 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-consumer/src/main/resources/application.yaml
+++ 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-consumer/src/main/resources/application.yaml
@@ -19,6 +19,7 @@ server:
     max-http-form-post-size: 100MB
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-provider/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-provider/src/main/resources/application.yml
index c786b61ad1..358aa24a67 100644
--- 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-provider/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-grpc/shenyu-examples-sdk-grpc-provider/src/main/resources/application.yml
@@ -25,6 +25,7 @@ spring:
 
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-http/src/main/resources/application.yaml
 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-http/src/main/resources/application.yaml
index 8e254d68d9..4f8f3ba169 100644
--- 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-http/src/main/resources/application.yaml
+++ 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-http/src/main/resources/application.yaml
@@ -19,6 +19,7 @@ server:
     max-http-form-post-size: 100MB
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-consumer/src/main/resources/application.yaml
 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-consumer/src/main/resources/application.yaml
index 4301c2d982..9df0ed658c 100644
--- 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-consumer/src/main/resources/application.yaml
+++ 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-consumer/src/main/resources/application.yaml
@@ -19,6 +19,7 @@ server:
     max-http-form-post-size: 100MB
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-provider/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-provider/src/main/resources/application.yml
index a5fefafc30..e701982b6d 100644
--- 
a/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-provider/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-sdk/shenyu-examples-sdk-springcloud/shenyu-examples-sdk-springcloud-provider/src/main/resources/application.yml
@@ -45,6 +45,7 @@ springCloud-test:
   ribbon.NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/src/main/resources/application.yml
index d1957b7919..71102458d6 100644
--- 
a/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-sofa/shenyu-examples-sofa-service/src/main/resources/application.yml
@@ -36,6 +36,7 @@ sofa:
         address: zookeeper://127.0.0.1:2181
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml
index 9a5b889c1e..b5dd26a062 100644
--- 
a/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-springcloud/src/main/resources/application.yml
@@ -45,6 +45,7 @@ springCloud-test:
   ribbon.NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-springmvc/src/main/resources/context/shenyu.xml
 
b/shenyu-examples/shenyu-examples-springmvc/src/main/resources/context/shenyu.xml
index 9e2f734723..382e3cfae4 100644
--- 
a/shenyu-examples/shenyu-examples-springmvc/src/main/resources/context/shenyu.xml
+++ 
b/shenyu-examples/shenyu-examples-springmvc/src/main/resources/context/shenyu.xml
@@ -47,6 +47,8 @@
                 <entry key="http" value-ref="clientPropertiesConfig"/>
             </map>
         </property>
+        <property name="namespace" 
value="649330b6-c2d7-4edc-be8e-8a54df9eb385">
+        </property>
     </bean>
 
     <!-- ClientPropertiesConfig -->
diff --git 
a/shenyu-examples/shenyu-examples-tars/src/main/resources/application.yml 
b/shenyu-examples/shenyu-examples-tars/src/main/resources/application.yml
index cf9d4f6058..314c1587e0 100644
--- a/shenyu-examples/shenyu-examples-tars/src/main/resources/application.yml
+++ b/shenyu-examples/shenyu-examples-tars/src/main/resources/application.yml
@@ -29,6 +29,7 @@ logging:
     org.apache.shenyu: debug
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/resources/application.yml
index 17c158c48c..6d2102b13a 100644
--- 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/resources/application.yml
@@ -18,6 +18,7 @@ server:
   address: 0.0.0.0
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095
diff --git 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/src/main/resources/application.yml
index 790365bfe3..74bbe91c4e 100644
--- 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/src/main/resources/application.yml
@@ -18,6 +18,7 @@ server:
   address: 0.0.0.0
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   common:
     contextPath: /ws-native
     appName: ws-native
diff --git 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-reactive-websocket/src/main/resources/application.yml
 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-reactive-websocket/src/main/resources/application.yml
index 57780eae26..68725f10ae 100644
--- 
a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-reactive-websocket/src/main/resources/application.yml
+++ 
b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-reactive-websocket/src/main/resources/application.yml
@@ -19,6 +19,7 @@ server:
 
 
 shenyu:
+  namespace: 649330b6-c2d7-4edc-be8e-8a54df9eb385
   register:
     registerType: http
     serverLists: http://localhost:9095

Reply via email to