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

liujun 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 e9ae7caa1 feat: bump spring boot(3.2.3) and JDK17 in 
10-task:dubbo-sample-develop example module (#1060)
e9ae7caa1 is described below

commit e9ae7caa125d9684449ad8281e239034e7ed64b4
Author: YuLuo <[email protected]>
AuthorDate: Fri Mar 22 15:47:26 2024 +0800

    feat: bump spring boot(3.2.3) and JDK17 in 10-task:dubbo-sample-develop 
example module (#1060)
---
 .../dubbo-samples-develop-api/pom.xml              |  4 ++--
 .../dubbo-samples-develop-consumer/pom.xml         | 15 +++++++-------
 .../src/main/resources/application.yml}            | 23 +++++++++++++---------
 .../dubbo-samples-develop-provider/pom.xml         | 15 +++++++-------
 .../src/main/resources/application.yml}            | 23 +++++++++++++---------
 5 files changed, 44 insertions(+), 36 deletions(-)

diff --git a/10-task/dubbo-samples-develop/dubbo-samples-develop-api/pom.xml 
b/10-task/dubbo-samples-develop/dubbo-samples-develop-api/pom.xml
index 51e190042..d76edf55a 100644
--- a/10-task/dubbo-samples-develop/dubbo-samples-develop-api/pom.xml
+++ b/10-task/dubbo-samples-develop/dubbo-samples-develop-api/pom.xml
@@ -33,8 +33,8 @@
     <description>Dubbo Task - Shop - Develop's API</description>
 
     <properties>
-        <maven.compiler.source>1.8</maven.compiler.source>
-        <maven.compiler.target>1.8</maven.compiler.target>
+        <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/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/pom.xml 
b/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/pom.xml
index 56727ec54..250c6cd7e 100644
--- a/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/pom.xml
+++ b/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>3.0.5</version>
+        <version>3.2.3</version>
         <relativePath/>
     </parent>
 
@@ -34,12 +34,11 @@
     <description>Dubbo RPC Develop Task - Consumer</description>
 
     <properties>
-        <maven.compiler.source>1.8</maven.compiler.source>
-        <maven.compiler.target>1.8</maven.compiler.target>
+        <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.2.6</dubbo.version>
-        <nacos.version>2.2.0</nacos.version>
+        <dubbo.version>3.3.0-beta.1</dubbo.version>
     </properties>
 
     <dependencies>
@@ -52,9 +51,9 @@
 
         <!-- registry dependency -->
         <dependency>
-            <groupId>com.alibaba.nacos</groupId>
-            <artifactId>nacos-client</artifactId>
-            <version>${nacos.version}</version>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-nacos-spring-boot-starter</artifactId>
+            <version>${dubbo.version}</version>
         </dependency>
 
         <!-- dubbo dependency-->
diff --git 
a/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/src/main/resources/application.properties
 
b/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/src/main/resources/application.yml
similarity index 64%
rename from 
10-task/dubbo-samples-develop/dubbo-samples-develop-provider/src/main/resources/application.properties
rename to 
10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/src/main/resources/application.yml
index 95cda1329..11c826a14 100644
--- 
a/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/src/main/resources/application.properties
+++ 
b/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/src/main/resources/application.yml
@@ -13,15 +13,20 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
-# Specify the application name of Dubbo
-dubbo.application.name=provider
+dubbo:
+    # Specify the application name of Dubbo
+    application:
+        name: consumer
 
-# Enable token verification for each invocation
-dubbo.provider.token=false
+    # Enable token verification for each invocation
+    provider:
+        token: false
 
-# Specify the registry address
-# dubbo.registry.address=nacos://localhost:8848?username=nacos&password=nacos
-dubbo.registry.address=nacos://${nacos.address:localhost}:8848?username=nacos&password=nacos
+    # Specify the registry address
+    # 
dubbo.registry.address=nacos://localhost:8848?username=nacos&password=nacos
+    registry:
+        address: 
nacos://${nacos.address:localhost}:8848?username=nacos&password=nacos
 
-dubbo.protocol.name=dubbo
-dubbo.protocol.port=20881
+    protocol:
+        name: dubbo
+        port: 20881
diff --git 
a/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/pom.xml 
b/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/pom.xml
index 0a09b8ba5..220c3d5ef 100644
--- a/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/pom.xml
+++ b/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>3.0.5</version>
+        <version>3.2.3</version>
         <relativePath/>
     </parent>
 
@@ -34,12 +34,11 @@
     <description>Dubbo RPC Develop Task - Provider</description>
 
     <properties>
-        <maven.compiler.source>1.8</maven.compiler.source>
-        <maven.compiler.target>1.8</maven.compiler.target>
+        <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.2.6</dubbo.version>
-        <nacos.version>2.2.0</nacos.version>
+        <dubbo.version>3.3.0-beta.1</dubbo.version>
     </properties>
 
     <dependencies>
@@ -52,9 +51,9 @@
 
         <!-- registry dependency -->
         <dependency>
-            <groupId>com.alibaba.nacos</groupId>
-            <artifactId>nacos-client</artifactId>
-            <version>${nacos.version}</version>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-nacos-spring-boot-starter</artifactId>
+            <version>${dubbo.version}</version>
         </dependency>
 
         <!-- dubbo dependency-->
diff --git 
a/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/src/main/resources/application.properties
 
b/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/src/main/resources/application.yml
similarity index 64%
rename from 
10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/src/main/resources/application.properties
rename to 
10-task/dubbo-samples-develop/dubbo-samples-develop-provider/src/main/resources/application.yml
index 8bd4f3423..b6a8882ea 100644
--- 
a/10-task/dubbo-samples-develop/dubbo-samples-develop-consumer/src/main/resources/application.properties
+++ 
b/10-task/dubbo-samples-develop/dubbo-samples-develop-provider/src/main/resources/application.yml
@@ -13,15 +13,20 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
-# Specify the application name of Dubbo
-dubbo.application.name=consumer
+dubbo:
+    # Specify the application name of Dubbo
+    application:
+        name: provider
 
-# Enable token verification for each invocation
-dubbo.provider.token=false
+    # Enable token verification for each invocation
+    provider:
+        token: false
 
-# Specify the registry address
-# dubbo.registry.address=nacos://localhost:8848?username=nacos&password=nacos
-dubbo.registry.address=nacos://${nacos.address:localhost}:8848?username=nacos&password=nacos
+    # Specify the registry address
+    # 
dubbo.registry.address=nacos://localhost:8848?username=nacos&password=nacos
+    registry:
+        address: 
nacos://${nacos.address:localhost}:8848?username=nacos&password=nacos
 
-dubbo.protocol.name=dubbo
-dubbo.protocol.port=20881
\ No newline at end of file
+    protocol:
+        name: dubbo
+        port: 20881


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to