Servlet容器部分 servlet容器用来处理请求servlet资源,并为web客服端填充response对象模块,在tomcat中,共有4种类型的容器,分别是:Engine、Host、Contex和Wrapper。 4种类型的容器,分别对应不同的层次: Engine:表示整个Catalina ...
分类:
其他好文 时间:
2017-06-18 15:15:49
阅读次数:
160
使用js+Ajax请求API接口数据-带请求头方式直接上代码前台调用:后台部分: /// /// 后台再请求别的接口的方法,体现了添加request header /// /// public string Login(string RequestString, HttpContext contex... ...
分类:
Windows程序 时间:
2017-06-07 14:16:35
阅读次数:
1330
RT,一个简单的例子,仅仅讲述原理 <div id="menu" style="width: 0;height: 0;background: cadetblue;position: absolute"></menu> 假设我要把上面这个div设置为右键菜单,先随意美化一下。 原理就是利用contex ...
分类:
Web程序 时间:
2017-05-30 21:03:20
阅读次数:
200
array( 'method'=>"GET", 'header'=>"User-Agent: aQ0O010O" ) ); $context = stream_context_create($opts); $html = @file_get_contents($url, false, $contex... ...
分类:
其他好文 时间:
2017-04-28 18:39:35
阅读次数:
145
package cn.mf.b_test; import javax.annotation.Resource; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.contex... ...
分类:
编程语言 时间:
2017-04-17 20:49:29
阅读次数:
179
<?php // file_get_contents 如何读取的是一个链接如果链接失效就会服务器挂掉所以要设置超时函数$opts = array( 'http'=>array( 'method'=>"GET", 'timeout'=>10, ) ); $context = stream_contex ...
分类:
Web程序 时间:
2017-04-01 15:27:18
阅读次数:
265
一、概述 1、启动一个WEB项目的时候,WEB容器会去读取它的配置文件web.xml,读取<listener>和<context-param>两个结点。 2、紧急着,容创建一个ServletContext(servlet上下文),这个web项目的所有部分都将共享这个上下文。 3、容器将<contex ...
分类:
Web程序 时间:
2017-02-23 15:41:43
阅读次数:
205
正常运行的必备配置 userSyntax: user user [group];Default: user nobody nobody;Context: main指定运行worker进程的用户 和组。 pidSyntax: pid file;Default: pid nginx.pid;Contex... ...
分类:
其他好文 时间:
2017-02-20 07:39:07
阅读次数:
418
著名的7阶层叠水平(stacking level) 详细参考:http://www.cnblogs.com/coco1s/p/5899089.html http://www.zhangxinxu.com/wordpress/2016/01/understand-css-stacking-contex ...
分类:
Web程序 时间:
2016-12-27 22:26:40
阅读次数:
149
public class DataCleanManager { /** * * 清除本应用内部缓存(/data/data/com.xxx.xxx/cache) * * * * @param context */ public static void cleanInternalCache(Contex ...
分类:
移动开发 时间:
2016-12-15 14:22:16
阅读次数:
244