Spring框架中有一个类: org.springframework.context.ApplicationContext.

获得途径:


ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml"); 配置文件路径

通过这个对象可以获得配置文件里面配置的Bean对象等....