普普通通java类获取spring的bean
普通java类获取spring的bean
获取ApplicationContext.xml中的bean
BeanFactory factory = new ClassPathXmlApplicationContext("classpath:/applicationContext*.xml"); ITestService testService = (ITestService)factory.getBean("testService");