如需温习上一节内容,请点击下方链接进行跳转:
目录
1.全局path定义
- base标签:base的标签的href属性里面的内容会自动添加到在hread标签里面的引入的路径前面
<base href = "${pageContext.request.servletContext.contextPath}/static/">
var globalPath = "${pageContext.request.servletContext.contextPath}";
2.页面缓存
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
3.postman使用
- 接口测试工具;postman发送请求给服务器,然后从服务器接受响应,最后在postman中展示出来。