add: 新增说明

This commit is contained in:
yuanzhao
2024-08-16 18:11:36 +08:00
parent b7e164f81c
commit cb1c36a52f

View File

@@ -58,7 +58,8 @@ type FromB interface {
}
// 注入 b 实现, 是不能直接支持的, 需要提前 NewB() 进行b注册到全局容器。
// 这里不要写Bean("a")
// 这里不要写Bean注解, 否则会报错
// 这种方式支持循环依赖
type GetB struct {
b FromB `inject:"b"`
}