This repository was archived by the owner on Feb 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
samples/springboot-samples/service
sample-service-biz/biz-bootstrap Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments