![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java_web
Jim-Weng
Getting now...
展开
-
重定向与转发区别
/*导航去首页* 重定向* 1. 服务器会首先返回给客户端,告诉其重定向的地址* 2. 客户端浏览器取得响应,发现是重定向,自动发起二次请求(所以地址栏会变)* 3. 优点:相对转发可以去到外部服务器资源,是http协议机制* 4. 缺点:性能没转发高,二次请求request对象变了,因此原来的request对象上的表单、*原创 2014-10-23 21:03:25 · 500 阅读 · 0 评论 -
javascript选项功能笔记1
<% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";%>">My JSP '原创 2014-10-20 21:34:40 · 447 阅读 · 0 评论 -
单例模式
class Singelton {private static singleton instance;//构造方法让其private,这就封住了外界利用new创建实例的可能private Singleton(){}//该方法是活的哥本类实例的唯一全局访问点public static Singleton GetInstance(){//若实例不存在,则new一个新实例,否则返回已原创 2015-09-28 10:06:24 · 334 阅读 · 0 评论 -
java web 将http 强转为https
在web.xml中添加如下: SSL /* CONFIDENTIAL原创 2015-10-10 16:12:38 · 704 阅读 · 0 评论