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 b73692b [Doc]:add new test method to quick start[http,spring-cloud]
(#427)
b73692b is described below
commit b73692bde39f1c67542434153d6e5202308640e0
Author: likeguo <[email protected]>
AuthorDate: Thu Jan 6 14:08:19 2022 +0800
[Doc]:add new test method to quick start[http,spring-cloud] (#427)
* add new test method
* add new test method
---
docs/quick-start/quick-start-http.md | 8 +++++
docs/quick-start/quick-start-springcloud.md | 38 ++++++++++++++++++++-
.../quick-start/http/idea-http-test-local.png | Bin 0 -> 479390 bytes
.../quick-start/http/idea-http-test-proxy.png | Bin 0 -> 544965 bytes
.../springcloud/idea-http-test-local.png | Bin 0 -> 735816 bytes
.../springcloud/idea-http-test-proxy.png | Bin 0 -> 749888 bytes
6 files changed, 45 insertions(+), 1 deletion(-)
diff --git a/docs/quick-start/quick-start-http.md
b/docs/quick-start/quick-start-http.md
index 39326c4..2485c7b 100644
--- a/docs/quick-start/quick-start-http.md
+++ b/docs/quick-start/quick-start-http.md
@@ -68,3 +68,11 @@ Open PluginList -> Proxy -> divide to see the list of plugin
rule configurations
Use PostMan to simulate HTTP to request your http service:

+
+Use IDEA HTTP Client Plugin to simulate HTTP to request your SpringCloud
service[local:no Shenyu proxy]:
+
+
+
+Use IDEA HTTP Client Plugin to simulate HTTP to request your SpringCloud
service[Shenyu proxy]:
+
+
diff --git a/docs/quick-start/quick-start-springcloud.md
b/docs/quick-start/quick-start-springcloud.md
index b66bd52..3c15702 100644
--- a/docs/quick-start/quick-start-springcloud.md
+++ b/docs/quick-start/quick-start-springcloud.md
@@ -51,7 +51,7 @@ Add the gateway proxy plugin for `Spring Cloud` and add the
your registry center
`eureka` config information:
-```xml
+```yml
eureka:
client:
serviceUrl:
@@ -60,6 +60,34 @@ eureka:
prefer-ip-address: true
```
+Note: Please ensure that the spring Cloud registry service discovery
configuration is enabled
+
+* Configuration method
+
+```yml
+spring:
+ cloud:
+ discovery:
+ enabled: true
+```
+
+* code method
+
+```java
+@SpringBootApplication
+@EnableDiscoveryClient
+public class ShenyuBootstrapApplication {
+
+ /**
+ * Main Entrance.
+ *
+ * @param args startup arguments
+ */
+ public static void main(final String[] args) {
+ SpringApplication.run(ShenyuBootstrapApplication.class, args);
+ }
+}
+```
Restart the `shenyu-bootstrap` project.
@@ -126,3 +154,11 @@ Open PluginList -> rpc proxy -> springCloud to see the
list of plugin rule confi
Use PostMan to simulate HTTP to request your SpringCloud service:

+
+Use IDEA HTTP Client Plugin to simulate HTTP to request your SpringCloud
service[local:no Shenyu proxy]:
+
+
+
+Use IDEA HTTP Client Plugin to simulate HTTP to request your SpringCloud
service[Shenyu proxy]:
+
+
diff --git a/static/img/shenyu/quick-start/http/idea-http-test-local.png
b/static/img/shenyu/quick-start/http/idea-http-test-local.png
new file mode 100644
index 0000000..b1463b4
Binary files /dev/null and
b/static/img/shenyu/quick-start/http/idea-http-test-local.png differ
diff --git a/static/img/shenyu/quick-start/http/idea-http-test-proxy.png
b/static/img/shenyu/quick-start/http/idea-http-test-proxy.png
new file mode 100644
index 0000000..b4741fc
Binary files /dev/null and
b/static/img/shenyu/quick-start/http/idea-http-test-proxy.png differ
diff --git a/static/img/shenyu/quick-start/springcloud/idea-http-test-local.png
b/static/img/shenyu/quick-start/springcloud/idea-http-test-local.png
new file mode 100644
index 0000000..06f3db9
Binary files /dev/null and
b/static/img/shenyu/quick-start/springcloud/idea-http-test-local.png differ
diff --git a/static/img/shenyu/quick-start/springcloud/idea-http-test-proxy.png
b/static/img/shenyu/quick-start/springcloud/idea-http-test-proxy.png
new file mode 100644
index 0000000..75b75b5
Binary files /dev/null and
b/static/img/shenyu/quick-start/springcloud/idea-http-test-proxy.png differ