兄弟们,就一步:找到该项目的application配置文件,加一行代码:spring.main.allow-bean-definition-overriding: true 。即:当遇到同样名字的时候,是否允许覆盖注册。
其他两种解决方式(我没有尝试过):could not be registered. A bean with that name has already been defined in file_握紧拳头的狼的博客-CSDN博客
兄弟们,就一步:找到该项目的application配置文件,加一行代码:spring.main.allow-bean-definition-overriding: true 。即:当遇到同样名字的时候,是否允许覆盖注册。
其他两种解决方式(我没有尝试过):could not be registered. A bean with that name has already been defined in file_握紧拳头的狼的博客-CSDN博客