Springboot启动报错:
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘org.apache.xxx.xxx类名’: 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!)
原因:上一个进程还在运行,单例模式导致无法实例化该对象;
解决办法:终止未结束的进程
Windows + R,输入cmd,按下Enter,打开DOS窗口
输入命令netstat -ano|findstr 项目端口号; 查看相应运行中的线程
输入命令taskkill /f /pid xxx 终止相应进程