feign.FeignException$NotFound
时间: 2024-04-25 09:24:50 浏览: 180
springcloud应用之feign
回答: feign.FeignException$NotFound是一个Feign客户端调用远程接口时可能出现的异常。根据引用\[1\]和引用\[2\]的描述,出现这个异常的原因可能是Feign接口没有正确注入、没有写@RestController注解或者@Request注解没有正确使用等等。另外,根据引用\[3\]的描述,这个异常也可能是由于远程接口返回了404错误导致的。因此,要解决feign.FeignException$NotFound异常,需要检查Feign接口的注入和配置是否正确,并确保远程接口的路径和参数传递正确。
#### 引用[.reference_title]
- *1* [Feign调用异常FeignException$NotFound: [404] during](https://blog.csdn.net/m0_37583655/article/details/119085009)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Feign feign.FeignException$NotFound: status 404 reading](https://blog.csdn.net/qq_51886300/article/details/127881431)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [使用Feign 报404feign.FeignException$NotFound: [404] during [GET] to ...](https://blog.csdn.net/xiaowang_lj/article/details/122910656)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文