Spring框架中有一个类: org.springframework.context.ApplicationContext.
获得途径:
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml"); 配置文件路径
通过这个对象可以获得配置文件里面配置的Bean对象等....
Spring框架中有一个类: org.springframework.context.ApplicationContext.
获得途径:
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml"); 配置文件路径
通过这个对象可以获得配置文件里面配置的Bean对象等....
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M