PHP中文网2017-04-18 10:42:46
This is the mechanism for assembling Beans. The second getBean(Class<> clzss)
明显是按照类型 获取,比方说,你要提取的Bean的类型是com.abc.def.test.service.LoginService
你只需要在这里给定参数是: getBean(com.abc.def.test.service.LoginService.class)
就可以得到一个LoginService
object instance