ApplicationContext appCtx = DefaultContainer.getSpringContext(); Object obj = appCtx.getBean(“类的全路径名”);