Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dapeng committed May 23, 2024
1 parent 79d1eb1 commit 55d51fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/zh/guide/gone-vs-spring.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type UseConfig struct {
HTTP参数注入,就是自动读取HTTP请求的Query参数,并注入到Controller的方法中。

**Gone**支持多种HTTP参数注入,可以取到URLHeaderBodyCookieFormPath等参数,
参考:[HTTP 注入说明](http://localhost:8081/zh/references/http-inject.html)
参考:[HTTP 注入说明](https://goner.fun/zh/references/http-inject.html)

### 注入Query参数
#### Spring
Expand Down Expand Up @@ -242,7 +242,7 @@ func (ctr *controller) Mount() gone.GinMountError {
```

**Gone**支持多种HTTP参数注入,可以取到URLHeaderBodyCookieFormPath等参数,
参考:[HTTP 注入说明](http://localhost:8081/zh/references/http-inject.html)
参考:[HTTP 注入说明](https://goner.fun/zh/references/http-inject.html)

## 总结
**Spring****Gone**在依赖模块导入、依赖注入、配置注入以及HTTP参数注入方面有不同的实现方式。
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/quick-start/simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ func main() {
Run()
}
```
在这个例子中,在Gone的准备阶段,通过[**埋葬**](http://localhost:8080/zh/guide/core-concept.html#bury-%E5%9F%8B%E8%91%AC)的方式将 Boss 和 Worker 导入到框架。在框架启动后,老板开始工作`in.boss.Do()`;老板工作中调用销售开始工作`b.seller.Do()`
在这个例子中,在Gone的准备阶段,通过[**埋葬**](https://goner.fun/zh/guide/core-concept.html#bury-%E5%9F%8B%E8%91%AC)的方式将 Boss 和 Worker 导入到框架。在框架启动后,老板开始工作`in.boss.Do()`;老板工作中调用销售开始工作`b.seller.Do()`

0 comments on commit 55d51fe

Please sign in to comment.