• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






唯💗独爱你

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 45 下一页

2023年3月22日

手动创建servlet容器
摘要: 阅读全文
posted @ 2023-03-22 11:11 唯💗独爱你 阅读(12) 评论(0) 推荐(0)
 
自动注解@WebServlet详细说明
摘要: /* * @WebServlet自动注解:相当于在web.xml文件中配置了servlet */ @WebServlet("/servletDemo1") public class ServletDemo1 extends HttpServlet { @Override protected void 阅读全文
posted @ 2023-03-22 10:53 唯💗独爱你 阅读(71) 评论(0) 推荐(0)
 
ServletContext常用方法2-共享数据
摘要: public class MyServlet2 extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException 阅读全文
posted @ 2023-03-22 09:39 唯💗独爱你 阅读(32) 评论(0) 推荐(0)
 

2023年3月21日

ServletContext常用方法1-获取全局参数和虚拟目录路径以及绝对路径
摘要: public class ServletContextDemo extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletE 阅读全文
posted @ 2023-03-21 22:27 唯💗独爱你 阅读(71) 评论(0) 推荐(0)
 
ServletConfig配置
摘要: <!-- 配置ServletContext --> <context-param> <param-name>globaEncoding</param-name> <param-value>UTF-8</param-value> </context-param> 阅读全文
posted @ 2023-03-21 21:07 唯💗独爱你 阅读(24) 评论(0) 推荐(0)
 
ServletContext介绍
摘要: 阅读全文
posted @ 2023-03-21 20:57 唯💗独爱你 阅读(12) 评论(0) 推荐(0)
 
常用方法
摘要: public class MyServlet extends HttpServlet { private ServletConfig config; // 定义一个config成员变量,利用servlet的初始化方法,对config赋值 @Override public void init(Serv 阅读全文
posted @ 2023-03-21 20:35 唯💗独爱你 阅读(20) 评论(0) 推荐(0)
 
ServletConfig配置方式
摘要: 阅读全文
posted @ 2023-03-21 20:05 唯💗独爱你 阅读(16) 评论(0) 推荐(0)
 
servletconfig介绍
摘要: 阅读全文
posted @ 2023-03-21 19:56 唯💗独爱你 阅读(24) 评论(0) 推荐(0)
 
tomcat默认servlet
摘要: 阅读全文
posted @ 2023-03-21 16:28 唯💗独爱你 阅读(14) 评论(0) 推荐(0)
 
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 45 下一页