提交 11e1eb51 编写于 作者: shuzheng5201314's avatar shuzheng5201314

增加删除指定key的cookie方法

上级 5d1271c4
......@@ -52,4 +52,14 @@ public class CookieUtil {
return value;
}
/**
* 删除cookie
* @param response
* @param name
* @return
*/
public static void removeCookie(HttpServletResponse response, String name) {
setCookie(response, name, "", "/", 0);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册