今天在起项目的时候,项目无法正常启动,有这么一个报错,The bean ‘XXClient.FeignClientSpecification’ could not be registered. A bean with that name has already been defined and overriding is disabled.
后来上网查了一下资料,自己也动手找了一下,后来发现其原因是@FeignClient(name = “scClient”…)中name属性的值重复了,导致bean名称相同,起不来项目,改成不同的就好了。
【spring cloud】The bean ‘XXXClient.FeignClientSpecification‘ could not be registered.
最新推荐文章于 2023-11-29 10:09:28 发布