OpenFeign的bug汇总

  1. 报错:

    Request method ‘POST‘ not supported

    解决: @RequestMapping(method = RequestMethod.GET,value = "/risk/queryAll")

    @FeignClient(value = "risk-service", configuration = RiskClientFallbackFactory.class)
        public interface RiskClient {
            @RequestMapping(method = RequestMethod.GET,value = "/risk/queryAll")
            Map<Long, RiskStatus> queryAllByUserIds(@RequestParam("list") List<Long> list);
        }

    还有另外四种解决方法:

    转载:https://blog.csdn.net/zhangkai__/article/details/140190582

  2.  
posted @ 2024-07-29 15:53  冷风5997  阅读(8)  评论(0编辑  收藏  举报