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编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2022-01-05
  • 2022-01-24
  • 2021-12-04
  • 2022-01-07
  • 2021-12-06
  • 2021-11-19
  • 2022-01-01
  • 2022-01-07
猜你喜欢
  • 2021-12-12
  • 2021-11-18
  • 2021-12-18
  • 2022-02-11
  • 2021-11-23
  • 2022-02-09
  • 2021-12-18
相关资源
相似解决方案