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 2024/09/06 02:40:32 UTC

(dubbo-samples) branch master updated: Lowering the jdk-ser ci version (#1167)

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 fe301d2c1 Lowering the jdk-ser ci version  (#1167)
fe301d2c1 is described below

commit fe301d2c1f35625d6bcb01c2a8c4990ada15f7d8
Author: 王聪洋 <56...@users.noreply.github.com>
AuthorDate: Fri Sep 6 10:40:27 2024 +0800

    Lowering the jdk-ser ci version  (#1167)
    
    * move-jdk-ser
    
    * add 3.3-ser-jdk
    
    * fix ci
    
    * fix ci
    
    * fix ci
---
 .../dubbo-samples-serialization-java-3.3/Readme.md |   5 +
 .../case-configuration.yml                         |  46 ++++++++
 .../case-versions.conf                             |   2 +-
 .../pom.xml                                        |  81 +++++++++++++
 .../dubbo/samples/serialization/DubboConsumer.java |  30 +++++
 .../src/main/resources/application.yml             |  22 ++++
 .../src/test/java/DemoServiceIT.java               |  39 +++++++
 .../pom.xml                                        |  27 ++---
 .../dubbo/samples/serialization/DemoService.java   |  22 ++++
 .../pom.xml                                        |  76 ++++++++++++
 .../dubbo/samples/serialization/DubboProvider.java |  38 ++++++
 .../serialization/impl/DemoServiceImpl.java        |  36 ++++++
 .../src/main/resources/application.yml             |  27 +++++
 .../dubbo-samples-serialization-java-3.3/pom.xml   | 128 +++++++++++++++++++++
 .../case-versions.conf                             |   2 +-
 .../dubbo-samples-serialization/pom.xml            |   1 +
 16 files changed, 564 insertions(+), 18 deletions(-)

diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/Readme.md b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/Readme.md
new file mode 100644
index 000000000..26c6328d2
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/Readme.md
@@ -0,0 +1,5 @@
+# Warning
+
+Java serialization is unsafe. Dubbo Team do not recommend anyone to use it.
+If you still want to use it, please follow [JEP 290](https://openjdk.java.net/jeps/290) 
+to set serialization filter to prevent deserialization leak.
\ No newline at end of file
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/case-configuration.yml b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/case-configuration.yml
new file mode 100644
index 000000000..61ed5e331
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/case-configuration.yml
@@ -0,0 +1,46 @@
+# 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:
+    zookeeper:
+        image: zookeeper:latest
+
+    provider:
+        type: app
+        basedir: dubbo-samples-serialization-java-provider-3.3
+        mainClass: org.apache.dubbo.samples.serialization.DubboProvider
+        systemProps:
+            - zookeeper.address=zookeeper
+        waitPortsBeforeRun:
+            - zookeeper:2181
+        checkPorts:
+            - 20880
+        checkLog: "dubbo service started"
+
+    test:
+        type: test
+        basedir: dubbo-samples-serialization-java-consumer-3.3
+        tests:
+            - "**/*IT.class"
+        systemProps:
+            - zookeeper.address=zookeeper
+        waitPortsBeforeRun:
+            - zookeeper:2181
+            - provider:20880
+        depends_on:
+            - provider
+
+
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/case-versions.conf
similarity index 97%
copy from 3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf
copy to 3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/case-versions.conf
index 1a3bfb38e..7d9f76a7f 100644
--- a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/case-versions.conf
@@ -20,6 +20,6 @@
 # Supported component versions of the test case
 
 # Spring app
-dubbo.version= 3.3.*
+dubbo.version= [ >= 3.3]
 spring.version=6.*
 java.version= [>= 17]
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/pom.xml b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/pom.xml
new file mode 100644
index 000000000..714cc7735
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/pom.xml
@@ -0,0 +1,81 @@
+<?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-serialization-java-3.3</artifactId>
+        <groupId>org.apache.dubbo</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.dubbo.samples.serialization</groupId>
+    <artifactId>dubbo-samples-serialization-java-consumer-3.3</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.dubbo.samples.serialization</groupId>
+            <artifactId>dubbo-samples-serialization-java-interface-3.3</artifactId>
+            <version>${project.parent.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-spring-boot-starter</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-zookeeper-curator5-spring-boot-starter</artifactId>
+            <exclusions>
+                <exclusion>
+                    <artifactId>logback-classic</artifactId>
+                    <groupId>ch.qos.logback</groupId>
+                </exclusion>
+                <exclusion>
+                    <artifactId>logback-core</artifactId>
+                    <groupId>ch.qos.logback</groupId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-log4j2</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/main/java/org/apache/dubbo/samples/serialization/DubboConsumer.java b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/main/java/org/apache/dubbo/samples/serialization/DubboConsumer.java
new file mode 100644
index 000000000..886292c32
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/main/java/org/apache/dubbo/samples/serialization/DubboConsumer.java
@@ -0,0 +1,30 @@
+/*
+ * 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.serialization;
+import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@EnableDubbo
+@SpringBootApplication
+public class DubboConsumer {
+
+    public static void main(String[] args) {
+        SpringApplication.run(DubboConsumer.class);
+    }
+}
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/main/resources/application.yml b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/main/resources/application.yml
new file mode 100644
index 000000000..e65bf3874
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/main/resources/application.yml
@@ -0,0 +1,22 @@
+# 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.
+
+dubbo:
+    application:
+        name: serialization-java-consumer
+        qos-port: 33333
+    registry:
+        address: zookeeper://${zookeeper.address:127.0.0.1}:2181
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/test/java/DemoServiceIT.java b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/test/java/DemoServiceIT.java
new file mode 100644
index 000000000..bfdc43d79
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-consumer-3.3/src/test/java/DemoServiceIT.java
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ */
+
+
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.apache.dubbo.samples.serialization.DemoService;
+import org.apache.dubbo.samples.serialization.DubboConsumer;
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+
+@SpringBootTest(classes = DubboConsumer.class)
+@RunWith(SpringRunner.class)
+public class DemoServiceIT {
+    @DubboReference
+    private DemoService service;
+
+    @Test
+    public void testGreeting() throws Exception {
+        Assert.assertTrue(service.sayHello("dubbo").startsWith("Hello dubbo"));
+    }
+}
diff --git a/3-extensions/serialization/dubbo-samples-serialization/pom.xml b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-interface-3.3/pom.xml
similarity index 69%
copy from 3-extensions/serialization/dubbo-samples-serialization/pom.xml
copy to 3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-interface-3.3/pom.xml
index 46ac985d5..16ae838f7 100644
--- a/3-extensions/serialization/dubbo-samples-serialization/pom.xml
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-interface-3.3/pom.xml
@@ -15,28 +15,23 @@
   ~ 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">
-    <modelVersion>4.0.0</modelVersion>
     <parent>
-        <groupId>org.apache</groupId>
-        <artifactId>apache</artifactId>
-        <version>23</version>
-        <relativePath/>
+        <artifactId>dubbo-samples-serialization-java-3.3</artifactId>
+        <groupId>org.apache.dubbo</groupId>
+        <version>1.0-SNAPSHOT</version>
     </parent>
+    <modelVersion>4.0.0</modelVersion>
 
-    <groupId>org.apache.dubbo</groupId>
-    <artifactId>dubbo-samples-serialization</artifactId>
-    <version>1.0-SNAPSHOT</version>
-    <packaging>pom</packaging>
-
-    <name>Dubbo Samples Serialization</name>
-    <description>Dubbo Samples Serialization</description>
+    <groupId>org.apache.dubbo.samples.serialization</groupId>
+    <artifactId>dubbo-samples-serialization-java-interface-3.3</artifactId>
 
-    <modules>
-        <module>dubbo-samples-serialization-java</module>
-    </modules>
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
 
 </project>
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-interface-3.3/src/main/java/org/apache/dubbo/samples/serialization/DemoService.java b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-interface-3.3/src/main/java/org/apache/dubbo/samples/serialization/DemoService.java
new file mode 100644
index 000000000..27cbbb30e
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-interface-3.3/src/main/java/org/apache/dubbo/samples/serialization/DemoService.java
@@ -0,0 +1,22 @@
+/*
+ * 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.serialization;
+
+public interface DemoService {
+    String sayHello(String name);
+}
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/pom.xml b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/pom.xml
new file mode 100644
index 000000000..c07c9f291
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/pom.xml
@@ -0,0 +1,76 @@
+<?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-serialization-java-3.3</artifactId>
+        <groupId>org.apache.dubbo</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.dubbo.samples.serialization</groupId>
+    <artifactId>dubbo-samples-serialization-java-provider-3.3</artifactId>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.dubbo.samples.serialization</groupId>
+            <artifactId>dubbo-samples-serialization-java-interface-3.3</artifactId>
+            <version>${project.parent.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-spring-boot-starter</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-zookeeper-curator5-spring-boot-starter</artifactId>
+            <exclusions>
+                <exclusion>
+                    <artifactId>logback-classic</artifactId>
+                    <groupId>ch.qos.logback</groupId>
+                </exclusion>
+                <exclusion>
+                    <artifactId>logback-core</artifactId>
+                    <groupId>ch.qos.logback</groupId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-log4j2</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/java/org/apache/dubbo/samples/serialization/DubboProvider.java b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/java/org/apache/dubbo/samples/serialization/DubboProvider.java
new file mode 100644
index 000000000..23e00cb8f
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/java/org/apache/dubbo/samples/serialization/DubboProvider.java
@@ -0,0 +1,38 @@
+/*
+ * 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.serialization;
+
+import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+
+@EnableDubbo
+@SpringBootApplication
+public class DubboProvider {
+
+    public static void main(String[] args) throws Exception {
+        System.out.println("Java serialization is unsafe. Dubbo Team do not recommend anyone to use it." +
+                "If you still want to use it, please follow [JEP 290](https://openjdk.java.net/jeps/290)" +
+                "to set serialization filter to prevent deserialization leak.");
+
+        SpringApplication.run(DubboProvider.class);
+
+        System.out.println("dubbo service started");
+    }
+}
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/java/org/apache/dubbo/samples/serialization/impl/DemoServiceImpl.java b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/java/org/apache/dubbo/samples/serialization/impl/DemoServiceImpl.java
new file mode 100644
index 000000000..e41f659fd
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/java/org/apache/dubbo/samples/serialization/impl/DemoServiceImpl.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.serialization.impl;
+
+import org.apache.dubbo.config.annotation.DubboService;
+import org.apache.dubbo.rpc.RpcContext;
+import org.apache.dubbo.samples.serialization.DemoService;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+@DubboService
+public class DemoServiceImpl implements DemoService {
+
+    @Override
+    public String sayHello(String name) {
+        System.out.println("[" + new SimpleDateFormat("HH:mm:ss").format(new Date()) + "] Hello " + name +
+                ", request from consumer: " + RpcContext.getServiceContext().getRemoteAddress());
+        return "Hello " + name + ", response from provider: " + RpcContext.getServerContext().getLocalAddress();
+    }
+}
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/resources/application.yml b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/resources/application.yml
new file mode 100644
index 000000000..283cde4b7
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/dubbo-samples-serialization-java-provider-3.3/src/main/resources/application.yml
@@ -0,0 +1,27 @@
+# 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.
+
+dubbo:
+    application:
+        name: serialization-java-provider
+    protocol:
+        name: dubbo
+        port: -1
+        serialization: java
+    registry:
+        address: zookeeper://${zookeeper.address:127.0.0.1}:2181
+    provider:
+        token: true
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/pom.xml b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/pom.xml
new file mode 100644
index 000000000..9737c735c
--- /dev/null
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java-3.3/pom.xml
@@ -0,0 +1,128 @@
+<?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">
+    <modelVersion>4.0.0</modelVersion>
+    <packaging>pom</packaging>
+    <modules>
+        <module>dubbo-samples-serialization-java-consumer-3.3</module>
+        <module>dubbo-samples-serialization-java-interface-3.3</module>
+        <module>dubbo-samples-serialization-java-provider-3.3</module>
+    </modules>
+    <parent>
+        <groupId>org.apache</groupId>
+        <artifactId>apache</artifactId>
+        <version>23</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>org.apache.dubbo</groupId>
+    <artifactId>dubbo-samples-serialization-java-3.3</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <name>Dubbo Samples Serialization Java</name>
+    <description>Dubbo Samples Serialization Java</description>
+
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+        <dubbo.version>3.3.0-beta.1</dubbo.version>
+        <spi.extension.version>3.3.0</spi.extension.version>
+        <spring-boot.version>3.2.3</spring-boot.version>
+        <junit5.version>5.10.1</junit5.version>
+        <junit.platform>1.9.3</junit.platform>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-dependencies</artifactId>
+                <version>${spring-boot.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-starter</artifactId>
+                <version>${spring-boot.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.springframework.boot</groupId>
+                        <artifactId>spring-boot-starter-logging</artifactId>
+                    </exclusion>
+                </exclusions>
+            </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.extensions</groupId>-->
+<!--                <artifactId>dubbo-extensions-bom</artifactId>-->
+<!--                <version>${spi.extension.version}</version>-->
+<!--                <type>pom</type>-->
+<!--                <scope>import</scope>-->
+<!--            </dependency>-->
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+      <!-- https://mvnrepository.com/artifact/org.apache.dubbo.extensions/dubbo-serialization-jdk -->
+      <dependency>
+        <groupId>org.apache.dubbo.extensions</groupId>
+        <artifactId>dubbo-serialization-jdk</artifactId>
+        <version>3.3.0</version>
+      </dependency>
+
+
+
+    </dependencies>
+
+    <build>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-maven-plugin</artifactId>
+                    <version>${spring-boot.version}</version>
+                    <executions>
+                        <execution>
+                            <goals>
+                                <goal>repackage</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+</project>
diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf
index 1a3bfb38e..cdbada7fa 100644
--- a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf
+++ b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf
@@ -20,6 +20,6 @@
 # Supported component versions of the test case
 
 # Spring app
-dubbo.version= 3.3.*
+dubbo.version= [ < 3.3]
 spring.version=6.*
 java.version= [>= 17]
diff --git a/3-extensions/serialization/dubbo-samples-serialization/pom.xml b/3-extensions/serialization/dubbo-samples-serialization/pom.xml
index 46ac985d5..8cb54ff76 100644
--- a/3-extensions/serialization/dubbo-samples-serialization/pom.xml
+++ b/3-extensions/serialization/dubbo-samples-serialization/pom.xml
@@ -37,6 +37,7 @@
 
     <modules>
         <module>dubbo-samples-serialization-java</module>
+        <module>dubbo-samples-serialization-java-3.3</module>
     </modules>
 
 </project>


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org