2019年1月21日

设置不使用缓存

摘要: 使用缓存可以加快页面的加载,降低服务端的负担。但是也可能看到过时的信息,可以通过如下手段通知浏览器不要使用缓存 response.setDateHeader("Expires",0 ); response.setHeader("Cache-Control","no-cache"); response 阅读全文

posted @ 2019-01-21 09:19 我是司 阅读(529) 评论(0) 推荐(0)

设置响应编码

摘要: 设置响应编码有两种方式 1. response.setContentType("text/html; charset=UTF-8"); 2. response.setCharacterEncoding("UTF-8"); 1. response.setContentType("text/html; 阅读全文

posted @ 2019-01-21 09:17 我是司 阅读(480) 评论(0) 推荐(0)

window TOMCAT 端口被占用了怎么办?

摘要: 查看80端口被哪些程序占用了 netstat -ano|findstr "80" 根据pid(进程id) 查询对应的应用程序 tasklist|findstr "1828" 根据名称 结束该程序 taskkill /f /t /im java.exe 阅读全文

posted @ 2019-01-21 08:42 我是司 阅读(187) 评论(0) 推荐(0)

导航