11 2022 档案
摘要:servlet类开发步骤 1.编写一个servlet类直接继承httpservlet 2.重写httpservlet类中的doGet 或 doPost方法,具体重写谁,由后端决定 3.将servlet配置到web.xml文件中 4.配置前端界面 web欢迎页面 当没有指定任何 “资源路径” 时会默认
阅读全文
摘要:http协议 响应协议报文 /** * http响应协议的具体格式 * * HTTP/1.1 200 ok 状态行 * Content-Type: text/html;charset=ISO-8859-1 响应头 * Content-Length: 12 * Date: Tue, 15 Nov 20
阅读全文