Feign call Error: duplicate name [How to Solve]


The bean ‘personnel.FeignClientSpecification’, defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

Solution 1:
Applicati.yml configuration file is added to allow duplicate names

Solution 2:
Write together the contents of different feign interfaces called by the same microservice

Write the contents of the two interfaces together

Read More: