使用Feign出现404错误问题

feign.FeignException: status 404 reading UserClient#queryUser(String,String); content:
{"timestamp":"2020-05-03T11:39:18.019+0000","status":404,"error":"Not Found","message":"No message available","path":"/user/query"}

 

https://blog.csdn.net/jianguang01/article/details/81200131?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2

 

 

 

在@FeignClient上加入url,注意这里的url是指向的本地启动的服务提供方

如果不加,默认找的是服务器端的 ,所以找不到你刚新建的接口.

posted @ 2020-05-03 20:35  卑微小伙  阅读(6133)  评论(0编辑  收藏  举报