Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Commit b8e9ade

Browse files
committed
Fix the error in the base calling biz module in the sample code
Signed-off-by: ToviHe <tovi1997@163.com>
1 parent d8d59c3 commit b8e9ade

File tree

2 files changed

+6
-5
lines changed
  • samples/springboot-samples/service

2 files changed

+6
-5
lines changed

samples/springboot-samples/service/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,25 @@ curl http://localhost:8080
112112

113113
#### 验证模块调用基座
114114

115-
访问 biz2 的 web 服务
115+
访问 biz 的 web 服务
116116
```shell
117-
curl http://localhost:8080/biz2
117+
curl http://localhost:8080/biz/
118118
```
119-
返回 `hello to ark2 dynamic deploy`
119+
返回 `hello to ark dynamic deploy`
120120

121121
且日志里能看到对基座base的调用都是成功的,证明模块通过 @AutowiredFromBase 或者 SpringServiceFinder.getBaseService() 方式调用基座是成功的
122122

123123
#### 验证模块调用模块
124124

125125
访问 biz2 的 web 服务
126126
```shell
127-
curl http://localhost:8080/biz2
127+
curl http://localhost:8080/biz2/
128128
```
129129
返回 `hello to ark2 dynamic deploy`
130130

131131
且日志里能看到对模块biz的调用都是成功的,证明模块通过 @AutowiredFromBiz 或者 SpringServiceFinder.getModuleService 方式调用模块biz是成功的
132132

133133
## 注意事项
134134
这里主要使用简单应用做验证,如果复杂应用,需要注意模块做好瘦身,基座有的依赖,模块尽可能设置成 provided,尽可能使用基座的依赖。
135+
这里验证模块功能时,web接口后需要加上斜号,例如curl http://localhost:8080/biz/ ,而不是 http://localhost:8080/biz
135136

samples/springboot-samples/service/sample-service-biz/biz-bootstrap/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<configuration>
7373
<skipArkExecutable>true</skipArkExecutable>
7474
<outputDirectory>target</outputDirectory>
75-
<bizName>biz-bootstrap</bizName>
75+
<bizName>biz</bizName>
7676
<!-- 单host下需更换 web context path -->
7777
<webContextPath>biz</webContextPath>
7878
<declaredMode>true</declaredMode>

0 commit comments

Comments
 (0)