You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by jb...@apache.org on 2017/12/12 07:05:54 UTC
[36/51] incubator-servicecomb-website git commit: JAV-529 added
github link with minor adjustment
JAV-529 added github link with minor adjustment
Project: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/commit/62ec59c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/tree/62ec59c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/diff/62ec59c3
Branch: refs/heads/asf-site
Commit: 62ec59c32a1415ff7f30220156b09410fb9bee0d
Parents: 3e97a88
Author: seanyinx <se...@huawei.com>
Authored: Mon Nov 27 17:09:32 2017 +0800
Committer: seanyinx <yi...@hotmail.com>
Committed: Tue Nov 28 16:12:05 2017 +0800
----------------------------------------------------------------------
_posts/cn/2017-11-27-dubbo-to-servicecomb.md | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/62ec59c3/_posts/cn/2017-11-27-dubbo-to-servicecomb.md
----------------------------------------------------------------------
diff --git a/_posts/cn/2017-11-27-dubbo-to-servicecomb.md b/_posts/cn/2017-11-27-dubbo-to-servicecomb.md
index 108d2d2..2d93932 100644
--- a/_posts/cn/2017-11-27-dubbo-to-servicecomb.md
+++ b/_posts/cn/2017-11-27-dubbo-to-servicecomb.md
@@ -13,6 +13,8 @@ redirect_from:
Dubbo和Java chassis底层都使用了Spring的依赖注入和bean管理系统,所以使用Dubbo的服务迁移到ServiceComb工作量较小,
主要改动在依赖和配置方面。
+本文示例代码可在[Java chassis](https://github.com/ServiceComb/ServiceComb-Java-Chassis/tree/master/samples)中获取。
+
## 服务提供方
### 替换依赖
将对dubbo的依赖替换为对Java chassis的依赖
@@ -169,6 +171,8 @@ cse:
## 服务消费方
### 替换依赖
将对Dubbo的依赖替换为对Java chassis的依赖
+
+Dubbo
```xml
<dependency>
<groupId>com.alibaba</groupId>
@@ -177,6 +181,7 @@ cse:
</dependency>
```
+Java chassis
```xml
<dependencyManagement>
<dependencies>
@@ -207,6 +212,7 @@ cse:
```
### 修改消费方启动入口
+Dubbo
```java
public class ConsumerMain
{
@@ -223,6 +229,7 @@ public class ConsumerMain
}
```
+Java chassis
```java
public class ConsumerMain
{