You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2022/01/04 09:13:28 UTC
[incubator-shenyu-website] branch main updated: apache dubbo example doc for version 2.4.0 and 2.4.1 (#425)
This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new 9ba7bdf apache dubbo example doc for version 2.4.0 and 2.4.1 (#425)
9ba7bdf is described below
commit 9ba7bdf53690834baa2276eb2341d7f080fc44bc
Author: AhahaGe <ah...@163.com>
AuthorDate: Tue Jan 4 17:13:18 2022 +0800
apache dubbo example doc for version 2.4.0 and 2.4.1 (#425)
---
.../version-2.4.0/user-guide/dubbo-proxy.md | 51 +++++++---------
.../version-2.4.1/user-guide/dubbo-proxy.md | 51 +++++++---------
.../version-2.4.0/user-guide/dubbo-proxy.md | 54 ++++++++---------
.../version-2.4.1/user-guide/dubbo-proxy.md | 68 ++++++++++------------
4 files changed, 99 insertions(+), 125 deletions(-)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md
index 1afe869..aa58982 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md
@@ -119,6 +119,18 @@ description: Dubbo服务接入
</dependency>
```
+并在你的客户端项目 application.yml 文件中配置:
+
+```yaml
+shenyu:
+ client:
+ registerType: 你的服务注册类型
+ serverLists: 你的服务注册地址
+ props:
+ contextPath: /你的contextPath
+ appName: 你的应用名字
+ port: dubbo 服务端口
+```
如果是`spring`构建,引入以下依赖:
@@ -163,36 +175,17 @@ description: Dubbo服务接入
</dependency>
```
+并在你的客户端项目 application.yml 文件中配置:
-如果是`spring`构建,引入以下依赖:
-
-
-```xml
-<dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-client-apache-dubbo</artifactId>
- <version>${shenyu.version}</version>
-</dependency>
-```
-
-并在你的 `bean` 定义的 `xml` 文件中新增如下 :
-
-```xml
- <bean id ="apacheDubboServiceBeanPostProcessor" class ="org.apache.shenyu.client.apache.dubbo.ApacheDubboServiceBeanPostProcessor">
- <constructor-arg ref="shenyuRegisterCenterConfig"/>
- </bean>
-
- <bean id="shenyuRegisterCenterConfig" class="org.apache.shenyu.register.common.config.ShenyuRegisterCenterConfig">
- <property name="registerType" value="http"/>
- <property name="serverList" value="http://localhost:9095"/>
- <property name="props">
- <map>
- <entry key="contextPath" value="/你的contextPath"/>
- <entry key="appName" value="你的名字"/>
- <entry key="ifFull" value="false"/>
- </map>
- </property>
- </bean>
+```yaml
+shenyu:
+ client:
+ registerType: 你的服务注册类型
+ serverLists: 你的服务注册地址
+ props:
+ contextPath: /你的contextPath
+ appName: 你的应用名字
+ port: dubbo 服务端口
```
## dubbo 插件设置
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.1/user-guide/dubbo-proxy.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.1/user-guide/dubbo-proxy.md
index 1afe869..aa58982 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.1/user-guide/dubbo-proxy.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.1/user-guide/dubbo-proxy.md
@@ -119,6 +119,18 @@ description: Dubbo服务接入
</dependency>
```
+并在你的客户端项目 application.yml 文件中配置:
+
+```yaml
+shenyu:
+ client:
+ registerType: 你的服务注册类型
+ serverLists: 你的服务注册地址
+ props:
+ contextPath: /你的contextPath
+ appName: 你的应用名字
+ port: dubbo 服务端口
+```
如果是`spring`构建,引入以下依赖:
@@ -163,36 +175,17 @@ description: Dubbo服务接入
</dependency>
```
+并在你的客户端项目 application.yml 文件中配置:
-如果是`spring`构建,引入以下依赖:
-
-
-```xml
-<dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-client-apache-dubbo</artifactId>
- <version>${shenyu.version}</version>
-</dependency>
-```
-
-并在你的 `bean` 定义的 `xml` 文件中新增如下 :
-
-```xml
- <bean id ="apacheDubboServiceBeanPostProcessor" class ="org.apache.shenyu.client.apache.dubbo.ApacheDubboServiceBeanPostProcessor">
- <constructor-arg ref="shenyuRegisterCenterConfig"/>
- </bean>
-
- <bean id="shenyuRegisterCenterConfig" class="org.apache.shenyu.register.common.config.ShenyuRegisterCenterConfig">
- <property name="registerType" value="http"/>
- <property name="serverList" value="http://localhost:9095"/>
- <property name="props">
- <map>
- <entry key="contextPath" value="/你的contextPath"/>
- <entry key="appName" value="你的名字"/>
- <entry key="ifFull" value="false"/>
- </map>
- </property>
- </bean>
+```yaml
+shenyu:
+ client:
+ registerType: 你的服务注册类型
+ serverLists: 你的服务注册地址
+ props:
+ contextPath: /你的contextPath
+ appName: 你的应用名字
+ port: dubbo 服务端口
```
## dubbo 插件设置
diff --git a/versioned_docs/version-2.4.0/user-guide/dubbo-proxy.md b/versioned_docs/version-2.4.0/user-guide/dubbo-proxy.md
index d92ab6e..de86060 100644
--- a/versioned_docs/version-2.4.0/user-guide/dubbo-proxy.md
+++ b/versioned_docs/version-2.4.0/user-guide/dubbo-proxy.md
@@ -117,6 +117,19 @@ Dubbo integration with gateway, please refer to : [shenyu-examples-dubbo](https:
</dependency>
```
+ Config this in your client project's application.yml file
+
+ ```yaml
+ shenyu:
+ client:
+ registerType: your service registerType
+ serverLists: your service register serverLists
+ props:
+ contextPath: /your contextPath
+ appName: your appName
+ port: dubbo service port
+ ```
+
* Spring
Add these dependencies:
@@ -163,36 +176,17 @@ Dubbo integration with gateway, please refer to : [shenyu-examples-dubbo](https:
</dependency>
```
- * Spring
-
- Add these dependencies:
-
- ```xml
- <dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-client-apache-dubbo</artifactId>
- <version>${shenyu.version}</version>
- </dependency>
- ```
-
- Injecct these properties into your Spring beans XML file:
-
- ```xml
- <bean id ="apacheDubboServiceBeanPostProcessor" class ="org.apache.shenyu.client.apache.dubbo.ApacheDubboServiceBeanPostProcessor">
- <constructor-arg ref="shenyuRegisterCenterConfig"/>
- </bean>
-
- <bean id="shenyuRegisterCenterConfig" class="org.apache.shenyu.register.common.config.ShenyuRegisterCenterConfig">
- <property name="registerType" value="http"/>
- <property name="serverList" value="http://localhost:9095"/>
- <property name="props">
- <map>
- <entry key="contextPath" value="/your contextPath"/>
- <entry key="appName" value="your name"/>
- <entry key="isFull" value="false"/>
- </map>
- </property>
- </bean>
+ Config this in your client project's application.yml file
+
+ ```yaml
+ shenyu:
+ client:
+ registerType: your service registerType
+ serverLists: your service register serverLists
+ props:
+ contextPath: /your contextPath
+ appName: your appName
+ port: dubbo service port
```
## Dubbo configuration
diff --git a/versioned_docs/version-2.4.1/user-guide/dubbo-proxy.md b/versioned_docs/version-2.4.1/user-guide/dubbo-proxy.md
index d92ab6e..ecfe68f 100644
--- a/versioned_docs/version-2.4.1/user-guide/dubbo-proxy.md
+++ b/versioned_docs/version-2.4.1/user-guide/dubbo-proxy.md
@@ -109,13 +109,26 @@ Dubbo integration with gateway, please refer to : [shenyu-examples-dubbo](https:
Add these dependencies:
- ```xml
- <dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-spring-boot-starter-client-alibaba-dubbo</artifactId>
- <version>${shenyu.version}</version>
- </dependency>
- ```
+ ```xml
+ <dependency>
+ <groupId>org.apache.shenyu</groupId>
+ <artifactId>shenyu-spring-boot-starter-client-alibaba-dubbo</artifactId>
+ <version>${shenyu.version}</version>
+ </dependency>
+ ```
+
+ Config this in your client project's application.yml file
+
+ ```yaml
+ shenyu:
+ client:
+ registerType: your service registerType
+ serverLists: your service register serverLists
+ props:
+ contextPath: /your contextPath
+ appName: your appName
+ port: dubbo service port
+ ```
* Spring
@@ -163,36 +176,17 @@ Dubbo integration with gateway, please refer to : [shenyu-examples-dubbo](https:
</dependency>
```
- * Spring
-
- Add these dependencies:
-
- ```xml
- <dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-client-apache-dubbo</artifactId>
- <version>${shenyu.version}</version>
- </dependency>
- ```
-
- Injecct these properties into your Spring beans XML file:
-
- ```xml
- <bean id ="apacheDubboServiceBeanPostProcessor" class ="org.apache.shenyu.client.apache.dubbo.ApacheDubboServiceBeanPostProcessor">
- <constructor-arg ref="shenyuRegisterCenterConfig"/>
- </bean>
-
- <bean id="shenyuRegisterCenterConfig" class="org.apache.shenyu.register.common.config.ShenyuRegisterCenterConfig">
- <property name="registerType" value="http"/>
- <property name="serverList" value="http://localhost:9095"/>
- <property name="props">
- <map>
- <entry key="contextPath" value="/your contextPath"/>
- <entry key="appName" value="your name"/>
- <entry key="isFull" value="false"/>
- </map>
- </property>
- </bean>
+ Config this in your client project's application.yml file
+
+ ```yaml
+ shenyu:
+ client:
+ registerType: your service registerType
+ serverLists: your service register serverLists
+ props:
+ contextPath: /your contextPath
+ appName: your appName
+ port: dubbo service port
```
## Dubbo configuration