feign.FeignException$NotFound: [404 Not Found] Gateway level error [Solved]

If you report this error,

feign.FeignException$NotFound: [404 Not Found] during [POST] to [http://zdy-gateway-service/zdy-order-service/addOrder?skuId=1] [OrderFeign#addOrder(Long)]: [{"timestamp":"2023-07-07T08:27:23.979+00:00","path":"/zdy-order-service/addOrder","status":404,"error":"Not Found","message":null,"requestId":"f5b00741-2"}]

And confirmed that nacos has it, and the group is correct.

First check to see if the route is registered. I use zdy-order-service here but there is no registration in the route.

If the route is registered after the gateway, an error is reported.

Then check to see if your level is correct. If the level is wrong, you will still not be able to find it.

 The correct way to write it is as follows:

 You must pay attention to the level of the configuration file, and try to write it right once. Otherwise, BUG is not easy to find.

Guess you like

Origin blog.csdn.net/tomorrow9813/article/details/131599996