Tag Archives: defined in null

[Solved] Feign Error: ‘xx.FeignClientSpecification’, defined in null, could not be registered.

The reason is that one spring boot cannot allow two feign clients, which should be configured in application.yml

spring:

  main:
    allow-bean-definition-overriding: true

In addition, the settings for package scanning should be set correctly, otherwise an error will be reported if the feign client of the corresponding package is not found

[Solved] Feign Call Error: The bean ‘XXX.FeignClientSpecification’, defined in null, could not be registered….

Problem Description:

Two remote call classes are created, one is to call refund and the other is to call discount

But the two calling classes are the same microservice called

All called @feignclient (value = “XXX shop”)

How to solve it: the interfaces of the same service should not be written in multiple interface classes, but be placed in the same interface class to define calls