SpringCloud 服务feign调用问题

Description:

The bean xxx.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

解决办法:

Feign的注册,有同名的feign的名字重复注册,相同的name也就是跨服务调用,同一个服务的接口,不能分散的写在多个接口类中,要放到同一个借口类中定义调用。

posted @ 2018-12-04 17:03  zchwys  阅读(2479)  评论(0编辑  收藏  举报