From 0e6565b461d619d2b7645f96f8fcc0e1dfd6c297 Mon Sep 17 00:00:00 2001 From: fangjian0423 Date: Wed, 17 Apr 2019 10:54:48 +0800 Subject: [PATCH] updata dubbo versions of all components to 2.7.1 --- spring-cloud-alibaba-dependencies/pom.xml | 13 +++++++++---- .../sentinel-dubbo-consumer-example/pom.xml | 9 +++++++-- .../cloud/examples/FooServiceConsumer.java | 5 ++--- .../sentinel-dubbo-provider-example/pom.xml | 10 ++++++++-- .../alibaba/cloud/examples/FooServiceImpl.java | 17 ++++++----------- spring-cloud-alibaba-sentinel/pom.xml | 7 +++++++ 6 files changed, 39 insertions(+), 22 deletions(-) diff --git a/spring-cloud-alibaba-dependencies/pom.xml b/spring-cloud-alibaba-dependencies/pom.xml index 54cbb7c76..d716f57b1 100644 --- a/spring-cloud-alibaba-dependencies/pom.xml +++ b/spring-cloud-alibaba-dependencies/pom.xml @@ -29,8 +29,8 @@ 2.16.0 2.0.2 2.1.6 - 2.6.5 - 0.2.1.RELEASE + 2.7.1 + 2.7.1 0.0.2 1.1.0 1.1.8 @@ -167,6 +167,11 @@ sentinel-dubbo-adapter ${sentinel.version} + + com.alibaba.csp + sentinel-apache-dubbo-adapter + ${sentinel.version} + org.springframework.cloud sentinel-dubbo-api @@ -194,7 +199,7 @@ - com.alibaba + org.apache.dubbo dubbo ${dubbo.version} @@ -215,7 +220,7 @@ - com.alibaba.boot + org.apache.dubbo dubbo-spring-boot-starter ${dubbo-spring-boot.version} diff --git a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/pom.xml b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/pom.xml index 88a4c6635..a587640df 100644 --- a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/pom.xml +++ b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/pom.xml @@ -28,12 +28,17 @@ - com.alibaba.boot + com.alibaba.csp + sentinel-apache-dubbo-adapter + + + + org.apache.dubbo dubbo-spring-boot-starter - com.alibaba + org.apache.dubbo dubbo diff --git a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceConsumer.java b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceConsumer.java index 0caae7294..705ddbc50 100644 --- a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceConsumer.java +++ b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-consumer-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceConsumer.java @@ -1,14 +1,13 @@ package org.springframework.cloud.alibaba.cloud.examples; -import com.alibaba.dubbo.config.annotation.Reference; +import org.apache.dubbo.config.annotation.Reference; /** * @author fangjian */ public class FooServiceConsumer { - @Reference(version = "${foo.service.version}", application = "${dubbo.application.id}", - url = "dubbo://localhost:12345", timeout = 30000) + @Reference(version = "${foo.service.version}", application = "${dubbo.application.id}", url = "dubbo://localhost:12345", timeout = 30000) private FooService fooService; public String hello(String name) { diff --git a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/pom.xml b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/pom.xml index d9c208788..8cce2fdfc 100644 --- a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/pom.xml +++ b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/pom.xml @@ -21,18 +21,24 @@ org.springframework.cloud spring-cloud-starter-alibaba-sentinel + org.springframework.cloud sentinel-dubbo-api - com.alibaba.boot + com.alibaba.csp + sentinel-apache-dubbo-adapter + + + + org.apache.dubbo dubbo-spring-boot-starter - com.alibaba + org.apache.dubbo dubbo diff --git a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceImpl.java b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceImpl.java index 11dd22637..857b31bc9 100644 --- a/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceImpl.java +++ b/spring-cloud-alibaba-examples/sentinel-example/sentinel-dubbo-example/sentinel-dubbo-provider-example/src/main/java/org/springframework/cloud/alibaba/cloud/examples/FooServiceImpl.java @@ -1,20 +1,15 @@ package org.springframework.cloud.alibaba.cloud.examples; -import com.alibaba.dubbo.config.annotation.Service; +import org.apache.dubbo.config.annotation.Service; /** * @author fangjian */ -@Service( - version = "${foo.service.version}", - application = "${dubbo.application.id}", - protocol = "${dubbo.protocol.id}", - registry = "${dubbo.registry.id}" -) +@Service(version = "${foo.service.version}", application = "${dubbo.application.id}", protocol = "${dubbo.protocol.id}", registry = "${dubbo.registry.id}") public class FooServiceImpl implements FooService { - @Override - public String hello(String name) { - return "hello, " + name; - } + @Override + public String hello(String name) { + return "hello, " + name; + } } \ No newline at end of file diff --git a/spring-cloud-alibaba-sentinel/pom.xml b/spring-cloud-alibaba-sentinel/pom.xml index 1c0d9934c..f52c62412 100644 --- a/spring-cloud-alibaba-sentinel/pom.xml +++ b/spring-cloud-alibaba-sentinel/pom.xml @@ -33,6 +33,13 @@ com.alibaba.csp sentinel-dubbo-adapter + true + + + + com.alibaba.csp + sentinel-apache-dubbo-adapter + true