标签: java spring
我使用spring
BeanFactory未初始化或已经关闭在通过AplicationContext访问bean之前调用'refresh'
我使用这行代码
ApplicationContext context = new ClassPathXmlApplicationContext(); ShapeCollection shape = (ShapeCollection) context.getBean("shapeCollection");