摘要:
1. 概念:代表整个web应用,可以和程序的容器(服务器)来通信 2. 获取: 1. 通过request对象获取 request.getServletContext(); 2. 通过HttpServlet获取 this.getServletContext(); 3. 功能: 1. 获取MIME类型: 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(22)
评论(0)
推荐(0)
摘要:
乱码问题: 1. PrintWriter pw = response.getWriter();获取的流的默认编码是ISO-8859-1 2. 设置该流的默认编码 3. 告诉浏览器响应体使用的编码 @Override protected void doPost(HttpServletRequest r 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(33)
评论(0)
推荐(0)
摘要:
1. 相对路径:通过相对路径不可以确定唯一资源 * 如:./index.html * 不以/开头,以.开头路径 * 规则:找到当前资源和目标资源之间的相对位置关系 * ./:当前目录 * ../:后退一级目录 2. 绝对路径:通过绝对路径可以确定唯一资源 * 如:http://localhost/c 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(87)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> #include<string.h> #define Size sizeof(struct Student) struct Student *p = NULL;//接收返回的头指针 typedef struct Stude 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(32)
评论(0)
推荐(0)
摘要:
重定向的特点:redirect 1. 地址栏发生变化 2. 重定向可以访问其他站点(服务器)的资源 3. 重定向是两次请求。不能使用request对象来共享数据 @Override protected void doPost(HttpServletRequest req, HttpServletRe 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(88)
评论(0)
推荐(0)
摘要:
Map<String, String[]> parameterMap = req.getParameterMap() //方法一 Set<String> keySet = parameterMaps.keySet(); for (String key : keySet) { String[] val 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(36)
评论(0)
推荐(0)
摘要:
安装zsh #安装zsh yum install -y zsh #安装git (已经安装跳过) yum install -y git #查看当前的shell [root@localhost hky]# echo $SHELL /bin/bash #查看已经安装的shell [root@localho 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(284)
评论(0)
推荐(0)
摘要:
Node和NPM 下载地址:https://nodejs.org/en/download/ 查看node版本 node -v C:\Users\username>node -v v12.16.0 安装完成Node应该自带了NPM了,在控制台输入npm -v查看 npm -v C:\Users\use 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(34)
评论(0)
推荐(0)
摘要:
SpringBoot体验 编程环境 idea(maven工程) 全文附代码 新建maven 工程 2. 导入依赖包 创建 springboot 启动类 @SpringBootApplication public class TestApplication { public static void m 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(43)
评论(0)
推荐(0)
摘要:
导入lombok依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.12</version> </dependency> mapper接口继承Mapper 阅读全文
posted @ 2022-05-10 23:18
iforeverhz
阅读(31)
评论(0)
推荐(0)