摘要:
/** * IOC容器Bean对象实例化方法 * 1、构造器实例化:Bean对象需要空构造 * 2、静态工厂实例化 * 3、实例化工厂实例化 */ public void fun(){ BeanFactory factory= new ClassPathXmlApplicationContext(" 阅读全文
posted @ 2022-07-03 10:45
lwx_R
阅读(37)
评论(0)
推荐(0)
摘要:
public void fun0(){ //Spring配置文件加载:得到Spring上下文环境 //单个配置文件 ApplicationContext ac=new ClassPathXmlApplicationContext("spring.xml"); //多配置文件 1.可变参数 传入多个文 阅读全文
posted @ 2022-07-03 10:44
lwx_R
阅读(35)
评论(0)
推荐(0)

浙公网安备 33010602011771号