You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by al...@apache.org on 2022/11/08 05:50:03 UTC
[dubbo-samples] branch master updated: Add nacos merge test cases (#496)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new dcc01ab6 Add nacos merge test cases (#496)
dcc01ab6 is described below
commit dcc01ab65a24bf384dca5ffb589f1b4a8b7c9a58
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Tue Nov 8 13:49:57 2022 +0800
Add nacos merge test cases (#496)
---
.../case-configuration.yml | 74 +++++++++++++++++
.../dubbo-samples-nacos-merge/case-versions.conf | 24 ++++++
.../dubbo-samples-nacos-merge-api/pom.xml | 30 +++++++
.../dubbo/samples/merge/api/MergeService.java | 28 +++++++
.../dubbo-samples-nacos-merge-consumer/pom.xml | 82 ++++++++++++++++++
.../apache/dubbo/samples/merge/MergeConsumer.java | 35 ++++++++
.../apache/dubbo/samples/merge/MergeConsumer2.java | 35 ++++++++
.../src/main/resources/log4j.properties | 26 ++++++
.../src/main/resources/spring/merge-consumer.xml | 33 ++++++++
.../src/main/resources/spring/merge-consumer2.xml | 33 ++++++++
.../apache/dubbo/samples/merge/Consumer1IT.java | 48 +++++++++++
.../apache/dubbo/samples/merge/Consumer2IT.java | 44 ++++++++++
.../dubbo-samples-nacos-merge-provider1/pom.xml | 69 +++++++++++++++
.../apache/dubbo/samples/merge/MergeProvider.java | 34 ++++++++
.../dubbo/samples/merge/impl/MergeServiceImpl.java | 37 +++++++++
.../samples/merge/impl/MergeServiceImpl2.java | 37 +++++++++
.../src/main/resources/dubbo.properties | 1 +
.../src/main/resources/log4j.properties | 26 ++++++
.../src/main/resources/spring/merge-provider.xml | 44 ++++++++++
.../dubbo-samples-nacos-merge-provider2/pom.xml | 69 +++++++++++++++
.../apache/dubbo/samples/merge/MergeProvider2.java | 36 ++++++++
.../samples/merge/impl/MergeServiceImpl3.java | 37 +++++++++
.../src/main/resources/dubbo.properties | 1 +
.../src/main/resources/log4j.properties | 26 ++++++
.../src/main/resources/spring/merge-provider2.xml | 38 +++++++++
.../dubbo-samples-nacos-merge/pom.xml | 97 ++++++++++++++++++++++
dubbo-samples-boundary-test/pom.xml | 11 ++-
27 files changed, 1051 insertions(+), 4 deletions(-)
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/case-configuration.yml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/case-configuration.yml
new file mode 100644
index 00000000..51fc0110
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/case-configuration.yml
@@ -0,0 +1,74 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+services:
+ nacos:
+ image: nacos/nacos-server:2.0.0
+ environment:
+ - PREFER_HOST_MODE=hostname
+ - MODE=standalone
+ - NACOS_AUTH_ENABLE=true
+ - JVM_XMS=350m
+ - JVM_XMX=350m
+ - JVM_XMN=150m
+
+ dubbo-samples-nacos-merge-provider1:
+ type: app
+ basedir: dubbo-samples-nacos-merge-provider1
+ mainClass: org.apache.dubbo.samples.merge.MergeProvider
+ systemProps:
+ - nacos.address=nacos
+ - nacos.port=8848
+ waitPortsBeforeRun:
+ - nacos:8848
+ checkPorts:
+ - 20880
+ checkLog: "dubbo service started"
+ depends_on:
+ - nacos
+
+ dubbo-samples-nacos-merge-provider2:
+ type: app
+ basedir: dubbo-samples-nacos-merge-provider2
+ mainClass: org.apache.dubbo.samples.merge.MergeProvider2
+ systemProps:
+ - nacos.address=nacos
+ - nacos.port=8848
+ waitPortsBeforeRun:
+ - nacos:8848
+ checkPorts:
+ - 20881
+ checkLog: "dubbo service started"
+ depends_on:
+ - nacos
+
+ dubbo-samples-nacos-merge-consumer:
+ type: test
+ basedir: dubbo-samples-nacos-merge-consumer
+ tests:
+ - "**/*IT.class"
+ systemProps:
+ - nacos.address=nacos
+ - nacos.port=8848
+ waitPortsBeforeRun:
+ - nacos:8848
+ - dubbo-samples-nacos-merge-provider1:20880
+ - dubbo-samples-nacos-merge-provider2:20881
+ depends_on:
+ - nacos
+ - dubbo-samples-nacos-merge-provider1
+ - dubbo-samples-nacos-merge-provider2
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/case-versions.conf b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/case-versions.conf
new file mode 100644
index 00000000..901e42fb
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/case-versions.conf
@@ -0,0 +1,24 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+# Supported component versions of the test case
+
+# Spring app
+dubbo.version=[ >= 3.1.0 ]
+spring.version=4.*, 5.*
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-api/pom.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-api/pom.xml
new file mode 100644
index 00000000..328445af
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-api/pom.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>dubbo-samples-nacos-merge</artifactId>
+ <groupId>org.apache.dubbo</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>dubbo-samples-nacos-merge-api</artifactId>
+</project>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-api/src/main/java/org/apache/dubbo/samples/merge/api/MergeService.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-api/src/main/java/org/apache/dubbo/samples/merge/api/MergeService.java
new file mode 100644
index 00000000..a3345590
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-api/src/main/java/org/apache/dubbo/samples/merge/api/MergeService.java
@@ -0,0 +1,28 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.dubbo.samples.merge.api;
+
+import java.util.List;
+
+public interface MergeService {
+
+ List<String> mergeResult();
+
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/pom.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/pom.xml
new file mode 100644
index 00000000..adcea4d1
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/pom.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>dubbo-samples-nacos-merge</artifactId>
+ <groupId>org.apache.dubbo</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>dubbo-samples-nacos-merge-consumer</artifactId>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-samples-nacos-merge-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-test</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.alibaba.nacos</groupId>
+ <artifactId>nacos-client</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <!-- For jdk 11 above JavaEE annotation -->
+ <profile>
+ <id>javax.annotation</id>
+ <activation>
+ <jdk>[1.11,)</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
+</project>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/java/org/apache/dubbo/samples/merge/MergeConsumer.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/java/org/apache/dubbo/samples/merge/MergeConsumer.java
new file mode 100644
index 00000000..639e42fa
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/java/org/apache/dubbo/samples/merge/MergeConsumer.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.dubbo.samples.merge;
+
+import org.apache.dubbo.samples.merge.api.MergeService;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class MergeConsumer {
+
+ public static void main(String[] args) throws Exception {
+ ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/merge-consumer.xml");
+ context.start();
+
+ MergeService mergeService = (MergeService) context.getBean("mergeService");
+ System.out.println(mergeService.mergeResult());
+ }
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/java/org/apache/dubbo/samples/merge/MergeConsumer2.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/java/org/apache/dubbo/samples/merge/MergeConsumer2.java
new file mode 100644
index 00000000..01226738
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/java/org/apache/dubbo/samples/merge/MergeConsumer2.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.dubbo.samples.merge;
+
+import org.apache.dubbo.samples.merge.api.MergeService;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class MergeConsumer2 {
+
+ public static void main(String[] args) throws Exception {
+ ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/merge-consumer2.xml");
+ context.start();
+
+ MergeService mergeService = (MergeService) context.getBean("mergeService");
+ System.out.println(mergeService.mergeResult());
+ }
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/log4j.properties b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/log4j.properties
new file mode 100644
index 00000000..d6ecd5ce
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/log4j.properties
@@ -0,0 +1,26 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+
+###set log levels###
+log4j.rootLogger=info, stdout
+###output to the console###
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{dd/MM/yy hh:mm:ss:sss z}] %t %5p %c{2}: %m%n
\ No newline at end of file
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/spring/merge-consumer.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/spring/merge-consumer.xml
new file mode 100644
index 00000000..93268a68
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/spring/merge-consumer.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
+ xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
+ <context:property-placeholder/>
+
+ <dubbo:application name="merge-consumer"/>
+
+ <dubbo:registry address="nacos://${nacos.address:127.0.0.1}:8848?username=nacos&password=nacos"/>
+
+ <dubbo:reference id="mergeService" interface="org.apache.dubbo.samples.merge.api.MergeService" group="*"
+ merger="true"/>
+
+</beans>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/spring/merge-consumer2.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/spring/merge-consumer2.xml
new file mode 100644
index 00000000..abd5cddb
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/main/resources/spring/merge-consumer2.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
+ xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
+ <context:property-placeholder/>
+
+ <dubbo:application name="merge-consumer"/>
+
+ <dubbo:registry address="nacos://${nacos.address:127.0.0.1}:8848?username=nacos&password=nacos"/>
+
+ <dubbo:reference id="mergeService" interface="org.apache.dubbo.samples.merge.api.MergeService"
+ group="merge2,merge3"/>
+
+</beans>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/test/java/org/apache/dubbo/samples/merge/Consumer1IT.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/test/java/org/apache/dubbo/samples/merge/Consumer1IT.java
new file mode 100644
index 00000000..256a311a
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/test/java/org/apache/dubbo/samples/merge/Consumer1IT.java
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.merge;
+
+import org.apache.dubbo.samples.merge.api.MergeService;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+import java.util.List;
+
+@RunWith(SpringJUnit4ClassRunner.class)
+@ContextConfiguration(locations = {"classpath:/spring/merge-consumer.xml"})
+public class Consumer1IT {
+ @Autowired
+ private MergeService mergeService;
+
+ @Test
+ public void test() throws Exception {
+ List<String> result = mergeService.mergeResult();
+ Assert.assertTrue(result.contains("group-2.1"));
+ Assert.assertTrue(result.contains("group-2.2"));
+ Assert.assertTrue(result.contains("group-1.1"));
+ Assert.assertTrue(result.contains("group-1.2"));
+ Assert.assertTrue(result.contains("group-3.1"));
+ Assert.assertTrue(result.contains("group-3.2"));
+ Assert.assertEquals(6, result.size());
+ }
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/test/java/org/apache/dubbo/samples/merge/Consumer2IT.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/test/java/org/apache/dubbo/samples/merge/Consumer2IT.java
new file mode 100644
index 00000000..7299fabd
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-consumer/src/test/java/org/apache/dubbo/samples/merge/Consumer2IT.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.merge;
+
+import org.apache.dubbo.samples.merge.api.MergeService;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+import java.util.List;
+
+@RunWith(SpringJUnit4ClassRunner.class)
+@ContextConfiguration(locations = {"classpath:/spring/merge-consumer2.xml"})
+public class Consumer2IT {
+ @Autowired
+ private MergeService mergeService;
+
+ @Test
+ public void test() throws Exception {
+ List<String> result = mergeService.mergeResult();
+ Assert.assertTrue(result.contains("group-2.1"));
+ Assert.assertTrue(result.contains("group-2.2"));
+ Assert.assertEquals(2, result.size());
+ }
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/pom.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/pom.xml
new file mode 100644
index 00000000..e953f51f
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/pom.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>dubbo-samples-nacos-merge</artifactId>
+ <groupId>org.apache.dubbo</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>dubbo-samples-nacos-merge-provider1</artifactId>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-samples-nacos-merge-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.alibaba.nacos</groupId>
+ <artifactId>nacos-client</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <!-- For jdk 11 above JavaEE annotation -->
+ <profile>
+ <id>javax.annotation</id>
+ <activation>
+ <jdk>[1.11,)</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+</project>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/MergeProvider.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/MergeProvider.java
new file mode 100644
index 00000000..dc7c5ab5
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/MergeProvider.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.merge;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+import java.util.concurrent.CountDownLatch;
+
+public class MergeProvider {
+
+ public static void main(String[] args) throws Exception {
+ ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/merge-provider.xml");
+ context.start();
+
+ System.out.println("dubbo service started");
+ new CountDownLatch(1).await();
+ }
+
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl.java
new file mode 100644
index 00000000..31fcc5cd
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl.java
@@ -0,0 +1,37 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.dubbo.samples.merge.impl;
+
+import org.apache.dubbo.samples.merge.api.MergeService;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class MergeServiceImpl implements MergeService {
+
+ @Override
+ public List<String> mergeResult() {
+ List<String> menus = new ArrayList<>();
+ menus.add("group-1.1");
+ menus.add("group-1.2");
+ return menus;
+ }
+
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl2.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl2.java
new file mode 100644
index 00000000..f11a6511
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl2.java
@@ -0,0 +1,37 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.dubbo.samples.merge.impl;
+
+import org.apache.dubbo.samples.merge.api.MergeService;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class MergeServiceImpl2 implements MergeService {
+
+ @Override
+ public List<String> mergeResult() {
+ List<String> menus = new ArrayList<>();
+ menus.add("group-2.1");
+ menus.add("group-2.2");
+ return menus;
+ }
+
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/dubbo.properties b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/dubbo.properties
new file mode 100644
index 00000000..81111846
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/dubbo.properties
@@ -0,0 +1 @@
+dubbo.application.register-mode=interface
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/log4j.properties b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/log4j.properties
new file mode 100644
index 00000000..d6ecd5ce
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/log4j.properties
@@ -0,0 +1,26 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+
+###set log levels###
+log4j.rootLogger=info, stdout
+###output to the console###
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{dd/MM/yy hh:mm:ss:sss z}] %t %5p %c{2}: %m%n
\ No newline at end of file
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/spring/merge-provider.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/spring/merge-provider.xml
new file mode 100644
index 00000000..b22160e1
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider1/src/main/resources/spring/merge-provider.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
+ xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
+ <context:property-placeholder/>
+
+ <dubbo:application name="merge-provider-1"/>
+
+ <dubbo:registry address="nacos://${nacos.address:127.0.0.1}:8848?username=nacos&password=nacos"/>
+
+ <dubbo:provider token="true"/>
+
+ <dubbo:protocol name="dubbo" port="20880"/>
+
+ <bean id="mergeService" class="org.apache.dubbo.samples.merge.impl.MergeServiceImpl"/>
+
+ <dubbo:service id="merge1Service" group="merge" interface="org.apache.dubbo.samples.merge.api.MergeService"
+ ref="mergeService"/>
+
+ <bean id="mergeService2" class="org.apache.dubbo.samples.merge.impl.MergeServiceImpl2"/>
+
+ <dubbo:service id="merge2Service" group="merge2" interface="org.apache.dubbo.samples.merge.api.MergeService"
+ ref="mergeService2"/>
+
+</beans>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/pom.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/pom.xml
new file mode 100644
index 00000000..9aebe407
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/pom.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>dubbo-samples-nacos-merge</artifactId>
+ <groupId>org.apache.dubbo</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>dubbo-samples-nacos-merge-provider2</artifactId>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-samples-nacos-merge-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.alibaba.nacos</groupId>
+ <artifactId>nacos-client</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <!-- For jdk 11 above JavaEE annotation -->
+ <profile>
+ <id>javax.annotation</id>
+ <activation>
+ <jdk>[1.11,)</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+</project>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/java/org/apache/dubbo/samples/merge/MergeProvider2.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/java/org/apache/dubbo/samples/merge/MergeProvider2.java
new file mode 100644
index 00000000..744bba5b
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/java/org/apache/dubbo/samples/merge/MergeProvider2.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.dubbo.samples.merge;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+import java.util.concurrent.CountDownLatch;
+
+public class MergeProvider2 {
+
+ public static void main(String[] args) throws Exception {
+ ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/merge-provider2.xml");
+ context.start();
+
+ System.out.println("dubbo service started");
+ new CountDownLatch(1).await();
+ }
+
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl3.java b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl3.java
new file mode 100644
index 00000000..2b9b0e6e
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/java/org/apache/dubbo/samples/merge/impl/MergeServiceImpl3.java
@@ -0,0 +1,37 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.dubbo.samples.merge.impl;
+
+import org.apache.dubbo.samples.merge.api.MergeService;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class MergeServiceImpl3 implements MergeService {
+
+ @Override
+ public List<String> mergeResult() {
+ List<String> menus = new ArrayList<>();
+ menus.add("group-3.1");
+ menus.add("group-3.2");
+ return menus;
+ }
+
+}
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/dubbo.properties b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/dubbo.properties
new file mode 100644
index 00000000..81111846
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/dubbo.properties
@@ -0,0 +1 @@
+dubbo.application.register-mode=interface
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/log4j.properties b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/log4j.properties
new file mode 100644
index 00000000..d6ecd5ce
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/log4j.properties
@@ -0,0 +1,26 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+
+###set log levels###
+log4j.rootLogger=info, stdout
+###output to the console###
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{dd/MM/yy hh:mm:ss:sss z}] %t %5p %c{2}: %m%n
\ No newline at end of file
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/spring/merge-provider2.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/spring/merge-provider2.xml
new file mode 100644
index 00000000..146412ef
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/dubbo-samples-nacos-merge-provider2/src/main/resources/spring/merge-provider2.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
+ xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
+ <context:property-placeholder/>
+
+ <dubbo:application name="merge-provider-2"/>
+
+ <dubbo:registry address="nacos://${nacos.address:127.0.0.1}:8848?username=nacos&password=nacos"/>
+
+ <dubbo:provider token="true"/>
+
+ <dubbo:protocol name="dubbo" port="20881"/>
+
+ <bean id="mergeService3" class="org.apache.dubbo.samples.merge.impl.MergeServiceImpl3"/>
+
+ <dubbo:service group="merge3" interface="org.apache.dubbo.samples.merge.api.MergeService" ref="mergeService3"/>
+
+</beans>
diff --git a/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/pom.xml b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/pom.xml
new file mode 100644
index 00000000..17a7ef62
--- /dev/null
+++ b/dubbo-samples-boundary-test/dubbo-samples-nacos-merge/pom.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <groupId>org.apache.dubbo</groupId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <modules>
+ <module>dubbo-samples-nacos-merge-api</module>
+ <module>dubbo-samples-nacos-merge-provider1</module>
+ <module>dubbo-samples-nacos-merge-provider2</module>
+ <module>dubbo-samples-nacos-merge-consumer</module>
+ </modules>
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>dubbo-samples-nacos-merge</artifactId>
+ <properties>
+ <dubbo.version>3.1.1</dubbo.version>
+ <spring.version>4.3.16.RELEASE</spring.version>
+ <junit.version>4.12</junit.version>
+ <source.level>1.8</source.level>
+ <target.level>1.8</target.level>
+ <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-samples-nacos-merge-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-framework-bom</artifactId>
+ <version>${spring.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-bom</artifactId>
+ <version>${dubbo.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-dependencies-bom</artifactId>
+ <version>${dubbo.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${maven-compiler-plugin.version}</version>
+ <configuration>
+ <source>${source.level}</source>
+ <target>${target.level}</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/dubbo-samples-boundary-test/pom.xml b/dubbo-samples-boundary-test/pom.xml
index 2db4e530..21166db9 100644
--- a/dubbo-samples-boundary-test/pom.xml
+++ b/dubbo-samples-boundary-test/pom.xml
@@ -14,7 +14,9 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- --><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>org.apache.dubbo</groupId>
<version>1.0-SNAPSHOT</version>
@@ -23,9 +25,10 @@
<artifactId>dubbo-samples-boundary-test</artifactId>
<modules>
- <module>dubbo-samples-mybatis</module>
- <module>dubbo-samples-hibernate</module>
- </modules>
+ <module>dubbo-samples-mybatis</module>
+ <module>dubbo-samples-hibernate</module>
+ <module>dubbo-samples-nacos-merge</module>
+ </modules>
<repositories>
<repository>
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org