mirror of
https://github.com/go-home-admin/toolset.git
synced 2025-12-24 13:37:52 +08:00
add: 新增说明
This commit is contained in:
@@ -58,7 +58,8 @@ type FromB interface {
|
||||
}
|
||||
|
||||
// 注入 b 实现, 是不能直接支持的, 需要提前 NewB() 进行b注册到全局容器。
|
||||
// 这里不要写Bean("a")
|
||||
// 这里不要写Bean注解, 否则会报错
|
||||
// 这种方式支持循环依赖
|
||||
type GetB struct {
|
||||
b FromB `inject:"b"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user