This is an automated email from the ASF dual-hosted git repository.
xcsnx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new 4b9272c48f Update quick-start-http.md (#1080)
4b9272c48f is described below
commit 4b9272c48f2f636459f3096f4e300f467fe7e9d1
Author: shown <[email protected]>
AuthorDate: Mon Aug 4 00:33:17 2025 +0800
Update quick-start-http.md (#1080)
---
.../quick-start/quick-start-http.md | 53 ++++++++++++----------
1 file changed, 29 insertions(+), 24 deletions(-)
diff --git
a/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/quick-start/quick-start-http.md
b/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/quick-start/quick-start-http.md
index a438fd8ef2..e2350e64a4 100644
---
a/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/quick-start/quick-start-http.md
+++
b/i18n/zh/docusaurus-plugin-content-docs/version-2.7.0.1/quick-start/quick-start-http.md
@@ -11,9 +11,9 @@ description: Http快速开始
启动成功后,需要在基础配置`->`插件管理中,把`divide` 插件设置为开启。在`Apache
ShenYu`网关中,`Http`请求是由`divide`插件进行处理。
-
-<img src="/img/shenyu/quick-start/http/http-plugin-enable.png" width="60%"
height="50%" />
-
+<p align="center">
+ <img src="/img/shenyu/quick-start/http/http-plugin-enable.png"
width="60%" height="50%" />
+</p>
启动网关,如果是通过源码的方式,直接运行`shenyu-bootstrap`中的`ShenyuBootstrapApplication`。
@@ -22,18 +22,18 @@ description: Http快速开始
引入网关对`Http`的代理插件,在网关的 `pom.xml` 文件中增加如下依赖:
```xml
- <!--if you use http proxy start this-->
- <dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-spring-boot-starter-plugin-divide</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.shenyu</groupId>
-
<artifactId>shenyu-spring-boot-starter-plugin-httpclient</artifactId>
- <version>${project.version}</version>
- </dependency>
+<!--if you use http proxy start this-->
+<dependency>
+ <groupId>org.apache.shenyu</groupId>
+ <artifactId>shenyu-spring-boot-starter-plugin-divide</artifactId>
+ <version>${project.version}</version>
+</dependency>
+
+<dependency>
+ <groupId>org.apache.shenyu</groupId>
+ <artifactId>shenyu-spring-boot-starter-plugin-httpclient</artifactId>
+ <version>${project.version}</version>
+</dependency>
```
@@ -57,25 +57,30 @@ description: Http快速开始
2021-02-10 00:57:08.026 INFO 3700 --- [ main]
o.d.s.e.http.ShenyuTestHttpApplication : Started ShenyuTestHttpApplication
in 2.555 seconds (JVM running for 3.411)
```
-
-
## 测试Http请求
`shenyu-examples-http`项目成功启动之后会自动把加 `@ShenyuSpringMvcClient` 注解的接口方法注册到网关。
打开`插件列表 -> Proxy -> divide`可以看到插件规则配置列表:
-
-
+<p align="center">
+ <img src="/img/shenyu/quick-start/http/http-plugin-enable.png"/>
+</p>
下面使用`postman`模拟`http`的方式来请求你的`http`服务:
-
+<p align="center">
+ <img src="/img/shenyu/quick-start/http/postman-test.png"/>
+</p>
-下面使用`IDEA HTTP Client Plugin`模拟`http`的方式来请求你的`http`服务[本地访问,不使用`shenyu`代理]:
+下面使用`IDEA HTTP Client Plugin`模拟`http`的方式来请求你的`http`服务[本地访问,不使用`shenyu`代理]:
-
+<p align="center">
+ <img src="/img/shenyu/quick-start/http/idea-http-test-local.png"/>
+</p>
-下面使用`IDEA HTTP Client Plugin`模拟`http`的方式来请求你的`http`服务[使用`shenyu`代理]:
+下面使用`IDEA HTTP Client Plugin`模拟`http`的方式来请求你的`http`服务[使用`shenyu`代理]:
-
+<p align="center">
+ <img src="/img/shenyu/quick-start/http/idea-http-test-proxy.png"/>
+</p>