记录一次整合opfegin出现
The bean 'ureport.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
解决方案
在 @FeignClient中增加一个contextId 。
例如 @FeignClient(name = "ureport", configuration = FeignConfig.class,contextId = "example",fallback = PaymentFallbackService.class)
opfegin 出现The bean ‘‘ could not be registered. A bean with that name
最新推荐文章于 2024-04-27 17:23:58 发布