diff --git a/zheng-common/src/main/java/com/zheng/common/util/CookieUtil.java b/zheng-common/src/main/java/com/zheng/common/util/CookieUtil.java index 3cd90a6e..a6ca9779 100644 --- a/zheng-common/src/main/java/com/zheng/common/util/CookieUtil.java +++ b/zheng-common/src/main/java/com/zheng/common/util/CookieUtil.java @@ -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); + } + }