feign.feignexception$notfound
时间: 2023-04-12 10:02:51 浏览: 107
根据您提供的信息,"feign.FeignException$NotFound" 错误通常表示通过Feign客户端发送请求时,服务器返回了404 Not Found状态码,表示请求的资源未找到。这可能是由于您提供的URL或请求参数有误或服务器端代码错误引起的。
您可以检查请求URL和参数是否正确,确保它们符合服务器端的要求。此外,您还可以查看服务器端的日志,以确定是否有任何异常或错误信息。
希望这可以帮助您解决问题!
相关问题
feign.FeignException$NotFound
回答: 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 ]
feign.FeignException$NotFound500
引用\[1\]中的错误信息显示,出现了feign.FeignException$NotFound: status 404的错误。引用\[2\]中提到,在远程调用时尽量不要使用路径传参,否则可能会出现FeignException$NotFound: status 404的错误。引用\[3\]中的错误信息也显示了类似的错误,即feign.FeignException$NotFound: \[404 Not Found\]。根据这些信息,可以得出结论,feign.FeignException$NotFound: status 404是表示远程接口调用时发生了404错误,即请求的资源未找到。
#### 引用[.reference_title]
- *1* [feign.FeignException$NotFound: status 404 reading](https://blog.csdn.net/weixin_59401183/article/details/128217318)[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.FeignException$NotFound: [404 Not Found] Gateway层级错误【已解决】](https://blog.csdn.net/tomorrow9813/article/details/131599996)[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 ]
阅读全文