spring服务重名导致失败

1、异常信息:
Annotation-specified bean name ‘keyCenterUtils’ for bean class [com.alibaba.aecp.elbrus.core.common.utils.KeyCenterUtils] conflicts with existing, non-compatible bean definition of same name and class [com.alibaba.aecp.app.common.util.KeyCenterUtils]
2、这是由于spring的bean都放在map中,key部分都是类名而不是完整的类路径。
3、解决的方式是对其中的一个类进行服务重命名。


版权声明:本文为Q563573095原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。