文章目录
用户退出登录清空cookie前端实现后端对接
开启Mybatis日志Sql打印
用户退出登录清空cookie
前端实现
后端对接
@ApiOperation(value
= "退出登录",notes
= "退出登录",httpMethod
= "POST")
@PostMapping("/logout")
public BEYONDJSONResult
logout(@RequestParam String userId
,
HttpServletRequest request
,
HttpServletResponse response
){
CookieUtils
.deleteCookie(request
,response
,"user");
return BEYONDJSONResult
.ok();
}
开启Mybatis日志Sql打印