{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/899","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/899/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/899/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/899","id":140035549,"number":899,"title":"Problem using @Autowire for @FeignClient annotated interface with fallback bean","user":{"login":"lreimer","id":3668212,"avatar_url":"https://avatars.githubusercontent.com/u/3668212?v=3","gravatar_id":"","url":"https://api.github.com/users/lreimer","html_url":"https://github.com/lreimer","followers_url":"https://api.github.com/users/lreimer/followers","following_url":"https://api.github.com/users/lreimer/following{/other_user}","gists_url":"https://api.github.com/users/lreimer/gists{/gist_id}","starred_url":"https://api.github.com/users/lreimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lreimer/subscriptions","organizations_url":"https://api.github.com/users/lreimer/orgs","repos_url":"https://api.github.com/users/lreimer/repos","events_url":"https://api.github.com/users/lreimer/events{/privacy}","received_events_url":"https://api.github.com/users/lreimer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-10T23:08:19Z","updated_at":"2016-03-10T23:08:19Z","closed_at":null,"body":"I have a problem when auto wiring a feign client with a defined fallback class. Basically, the problem is that now there are two qualifying beans found in the context, the feign client and the fallback bean.\r\n\r\n```java\r\n@FeignClient(name = \"store\", fallback = StoreClientFallback.class)\r\npublic interface StoreClient {\r\n}\r\n\r\n@Component\r\npublic class StoreClientFallback implements StoreClient {}\r\n\r\n@Controller\r\npublic class StoreController {\r\n    private final StoreClient storeClient;\r\n\r\n    // this here will not work\r\n    @Autowired\r\n    public StoreClient(StoreClient storeClient) { this.storeClient = storeClient; }\r\n}\r\n```\r\n\r\nI have tried putting @Primary, @Qualifier(\"name\") or a custom qualifier annotation on the feign interface and the constructor of the target bean. No success.\r\n"}}