it-deepinmind

java设置Cookie

public static void setCookie(HttpServletResponse response, String key, String value){
  Cookie cookie = new Cookie(key, value);
  cookie.setPath("/");
  response.addCookie(cookie);
 }

 

发表于 2019-11-06 14:15  金色的鱼儿  阅读(7529)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-12-13
  • 2021-11-17
  • 2021-11-15
  • 2021-10-17
  • 2022-01-05
  • 2021-10-18
  • 2021-12-07
  • 2021-09-28
猜你喜欢
  • 2021-12-12
  • 2021-11-18
  • 2021-12-18
  • 2021-08-30
  • 2021-11-14
  • 2021-11-23
  • 2021-08-03
相关资源
相似解决方案