springboot - could not be registered. A bean with that name has already been defined and overriding is disabled.

报错提示如上注册错误,说明有相同的 bean的名称,因此在 启动springboot时,增加如下设置,点击 edit,增加如下信息

 

 

spring.main.allow-bean-definition-overriding=true

 

posted @ 2025-03-07 11:47  javahepeng  阅读(88)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示