最新回答 / qq_慕仔3049912
在测试类中没有具体实现`createBean2()`方法,但是在Spring的配置文件中使用了`<lookup-method>`标签来定义了`createBean2()`方法的实现。<lookup-method>标签用于在运行时动态生成一个返回类型为指定类的对象的方法。在配置文件中的这行代码:<lookup-method name="createBean2" bean="bean2"/>表示当调用`createBean2()`方法时,实际上会返回`bean2`这个Bea...
2019-09-05