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也就是跨服務調用,同一個服務的接口,不能分散的寫在多個接口類中,要放到同一個借口類中定義調用。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM