The bean 'requestInterceptor', defined in class path resource ..., could not be registered. A bean with that name has already been defined in file ... and overriding is disabled.

先把报错原因翻译一下就知道是bean名字重复的原因

 

 

spring中相同名字不成功

 

1.解决办法-1  将重复的bean覆盖掉

 

 

2. 修改掉重复的名称就行了

 

posted @ 2021-08-31 09:32  今天又下小雨  阅读(1896)  评论(0编辑  收藏  举报