OpenFeign的bug汇总
-
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