This is an automated email from the ASF dual-hosted git repository.
kimmking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 90c17c4ef20 Update spring-boot.md
90c17c4ef20 is described below
commit 90c17c4ef20e0cb53150e828490aaa11342cfbfb
Author: kimmking <[email protected]>
AuthorDate: Wed Oct 12 14:40:00 2022 +0800
Update spring-boot.md
add missing method.
---
content/zh/docs3-v2/java-sdk/quick-start/spring-boot.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/content/zh/docs3-v2/java-sdk/quick-start/spring-boot.md
b/content/zh/docs3-v2/java-sdk/quick-start/spring-boot.md
index 83c03514d33..a3e0b82e85b 100755
--- a/content/zh/docs3-v2/java-sdk/quick-start/spring-boot.md
+++ b/content/zh/docs3-v2/java-sdk/quick-start/spring-boot.md
@@ -167,6 +167,10 @@ dubbo-samples-spring-boot-consumer/ConsumerApplication.java
public class ConsumerApplication {
@DubboReference
private DemoService demoService;
+
+ public String sayHello(String name) {
+ return demoService.sayHello(name);
+ }
public static void main(String[] args) {
ConfigurableApplicationContext context =
SpringApplication.run(ConsumerApplication.class, args);
@@ -177,4 +181,4 @@ public class ConsumerApplication {
}
```
-其中,`@EnableDubbo` 必须配置。
\ No newline at end of file
+其中,`@EnableDubbo` 必须配置。