摘要:
# 得到会话类HttpSession: ## req.getSession() -> 获取当前会话,没有则创建一个新的会话 ## req.getSession(true) -> 效果同上 ## req.getSession(false) -> 获取当前会话,没有则返回null ### 第一次发起请求 阅读全文
posted @ 2022-11-17 17:53
大聪明QAQ
阅读(47)
评论(0)
推荐(0)
摘要:
# 继承关系: ## 自定义类 -> HttpServlet -> GenericServlet -> Servlet(接口)。 # Servlet接口核心方法:init()、service()、destroy()。 ## service()方法:由HttpServlet类实现,查看源码,可知:通过 阅读全文
posted @ 2022-11-17 15:05
大聪明QAQ
阅读(85)
评论(0)
推荐(0)
浙公网安备 33010602011771号