最新回答 / qq_慕仔3049912
在測試類中沒有具體實現`createBean2()`方法,但是在Spring的配置文件中使用了`<lookup-method>`標簽來定義了`createBean2()`方法的實現。<lookup-method>標簽用于在運行時動態生成一個返回類型為指定類的對象的方法。在配置文件中的這行代碼:<lookup-method name="createBean2" bean="bean2"/>表示當調用`createBean2()`方法時,實際上會返回`bean2`這個Bea...
2019-09-05