From cb1c36a52f3936874e997c55c7c874d7652d2af7 Mon Sep 17 00:00:00 2001 From: yuanzhao <2206582181@qq.com> Date: Fri, 16 Aug 2024 18:11:36 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=96=B0=E5=A2=9E=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/bean.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/bean.md b/docs/bean.md index 91d0bf7..d5097b3 100644 --- a/docs/bean.md +++ b/docs/bean.md @@ -58,7 +58,8 @@ type FromB interface { } // 注入 b 实现, 是不能直接支持的, 需要提前 NewB() 进行b注册到全局容器。 -// 这里不要写Bean("a") +// 这里不要写Bean注解, 否则会报错 +// 这种方式支持循环依赖 type GetB struct { b FromB `inject:"b"` }