今天启动一个很老的项目出现了这样一个异常:

BeanFactory not initialized or already closed - call

再往上看看:

BeanFactory not initialized or already closed - call

发现是有两个重名的Service。更名即可。