{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1400","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/1400/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1400/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1400/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1400","id":183187174,"number":1400,"title":"How could I config @FeignClient？","user":{"login":"eacdy","id":9031050,"avatar_url":"https://avatars.githubusercontent.com/u/9031050?v=3","gravatar_id":"","url":"https://api.github.com/users/eacdy","html_url":"https://github.com/eacdy","followers_url":"https://api.github.com/users/eacdy/followers","following_url":"https://api.github.com/users/eacdy/following{/other_user}","gists_url":"https://api.github.com/users/eacdy/gists{/gist_id}","starred_url":"https://api.github.com/users/eacdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eacdy/subscriptions","organizations_url":"https://api.github.com/users/eacdy/orgs","repos_url":"https://api.github.com/users/eacdy/repos","events_url":"https://api.github.com/users/eacdy/events{/privacy}","received_events_url":"https://api.github.com/users/eacdy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-15T04:03:56Z","updated_at":"2016-10-15T04:03:56Z","closed_at":null,"body":"I have two feign client class in my project,one is PersonClient,and the other one is StoreClient.\r\nI want to config each of them with two configuration classes.\r\nHere below is the source code.\r\n`@FeignClient(name = \"personClient\",serviceId = \"person-service\",configuration = PersonFeignConfig.class)\r\n//@FeignClient(name = \"person-service\",fallback = PersonHystrixCommand.class)\r\npublic interface PersonClient {\r\n    @RequestMapping(\"/person/say\")\r\n    String say(@RequestParam(\"word\") String word);\r\n\r\n    @RequestMapping(\"/person/sayError\")\r\n    String sayError();\r\n\r\n    @RequestMapping(\"/person/sayHi\")\r\n    String sayHi();\r\n}`\r\nthe config class is \r\n`@Configuration\r\npublic class PersonFeignConfig {\r\n\tprivate Logger LOGGER = LoggerFactory.getLogger(PersonFeignConfig.class);\r\n\r\n\t@Bean\r\n\t@Scope(\"prototype\")\r\n\tRequest.Options options() {\r\n\t\tLOGGER.info(\"PERSON FEIGN CONFIG \");\r\n\t\treturn new Request.Options(1, 1);\r\n\t}\r\n}`\r\n=======\r\n`@FeignClient(name = \"personClient\",serviceId = \"person-service\",configuration = PersonFeignConfig.class)\r\n//@FeignClient(name = \"person-service\",fallback = PersonHystrixCommand.class)\r\npublic interface PersonClient {\r\n    @RequestMapping(\"/person/say\")\r\n    String say(@RequestParam(\"word\") String word);\r\n\r\n    @RequestMapping(\"/person/sayError\")\r\n    String sayError();\r\n\r\n    @RequestMapping(\"/person/sayHi\")\r\n    String sayHi();\r\n}`\r\nconfiguration class is：\r\n`@Configuration\r\npublic class StoreFeignConfig {\r\n\tprivate Logger LOGGER = LoggerFactory.getLogger(StoreFeignConfig.class);\r\n\r\n\t@Bean\r\n\t@Scope(\"prototype\")\r\n\t@Primary\r\n\tRequest.Options options2() {\r\n\t\tLOGGER.info(\"STORE FEIGN CONFIG\");\r\n\t\treturn new Request.Options(5000, 5000);\r\n\t}\r\n}`\r\nIn my opinion, PersonClient should not get response.because i've configed the connectTimeoutMillis 1ms and readTimeoutMillis 1ms.\r\nbut it always returns response code 200.\r\n\r\n\r\nWHAT is the problem?Could you help me?"}}
{"actor":{"display_login":"eacdy"}}