For anybody who was brought here by googling the generic bean error message, but who is actually trying to add a feign client to their Spring Boot application via the @FeignClient
annotation on your client interface, none of the above solutions will work for you.
To fix the problem, you need to add the @EnableFeignClients
annotation to your Application class, like so:
@SpringBootApplication
// ... (other pre-existing annotations) ...
@EnableFeignClients // <------- THE IMPORTANT ONE
public class Application {
In this way, the fix is similar to the @EnableMongoRepositories
fix mentioned above. It's a shame that this generic error message requires such a tailored fix for every type of circumstance...