Lookup Method injection(查找方法注入),即需要处理两个生命周期不同的bean时,当bean具有相同的生命周期,特别是他们都是singleton时,不要使用查找方法注入。
基于20个网页-相关网页
查找方法注入
Search method injection
以上为机器翻译结果,长、整句建议使用 人工翻译 。
另外一种获得“非常及时”的注入的方式是使用一个查找方法。
Another way to get "just in time" injection is to use a lookup method.
youdao
应用推荐
模块上移
模块下移
不移动