老师 后端 退出接口 接口这样写的 前端请求路径是对的
@ApiOperation(value = "退出接口", notes = "一键退出", httpMethod = "POST")
@PostMapping("/logout")
public GraceJSONResult logout(@RequestParam("userId") String userId,
HttpServletRequest request,
HttpServletResponse response);
前端报这个错
error: "Method Not Allowed"
message: "Request method 'POST' not supported"
path: "/passport/logout"
status: 405
timestamp: "2022-08-25 09:26:27"
一课收获分布式系统开发,微服务核心技术和中间件企业生产落地
了解课程