首页 > 其他 > 详细

feign.FeignException: status 404 reading xxService#xxmethod

时间:2020-07-03 13:34:55      阅读:308      评论:0      收藏:0      [点我收藏+]

做乐优商城授权中心出错

public interface UserApi {

    @GetMapping("query")
    public User queryUser(
            @RequestParam("username") String username,
            @RequestParam("password") String password);
}

这个接口上边有@RequestMapping("user"),但是user模块的controller并没有这个注解,要加都加,要不加都不加,因为controller还有很多方法是不带这个user路径的,所以去掉这个路径,以后要注意哦!

feign.FeignException: status 404 reading xxService#xxmethod

原文:https://www.cnblogs.com/artwalker/p/13229877.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!