spring_spring容器以外类获取spring容器内部Bean

来源:互联网 发布:php html 表单 编辑:程序博客网 时间:2024/06/05 17:15
 applicationContext = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml"}); XBean xBean = (XBean)applicationContext.getBean("xBean");

原创粉丝点击