feign.FeignException: status 404 reading DeptClientService#queryAll()

今天使用feign面向接口,实现springcloud负载均衡出错了,如下图,访问的地址 localhost/consumer/dept/list 解决方案: 看自己的注册中心名字是否和@FeignClient是否匹配 如果正确,检查自己的Mapping是否正确 感觉自己都没有问题,我再次启动项目,发现还是一样的错,这时候我 继续localhost/consumer/dept/list 还是报错,
相关文章
相关标签/搜索