原项目使用spring框架,需要在此基础上部署cxf框架,遇到一个报错:
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'cxf': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method
implementation!)
这个错连续折磨了好久,最后不得已,改变spring的版本,结果发现错误好了,从这里可以看出,是因为spring和cxf版本冲突导致一直报这个错误,改变spring或者cxf版本,使之相匹配