java学习笔记(3.31)

异常处理(try,catch,finally)

https://www.cnblogs.com/ECJTUACM-873284962/p/7527052.html (还没有细读!)

————————

session和cookie

https://www.cnblogs.com/andy-zhou/p/5360107.html(从机制理解)

存取session

创建获取session

HttpServletRequest request=ServletActionContext.getRequest();
HttpSession session= request.getSession();

存取session

存储方式:session.setAttribute("key",value);
取值1:session.getAttribute("key");
取值2:String name=(String)session.getAttribute("key");
————————

垃圾回收机制

https://www.cnblogs.com/mxlandxt/p/6972252.html
https://www.cnblogs.com/andy-zcx/p/5522836.html
http://www.importnew.com/26821.html

posted @ 2019-03-31 11:15  django0  阅读(114)  评论(0编辑  收藏  举报