在一个非CDN的域名下有一个页面,需要请求CDN域名下的资源。所以在CDN的那台源站的Nginx上设置了 add_header 'Access-Control-Allow-Headers' 'X-Requested-With' add_header 'Access-Control-Allow-Met... ...
分类:
其他好文 时间:
2016-05-31 22:33:12
阅读次数:
304
很简单的一个程序: 但是根本就没有起作用time.sleep The actual suspension time may be less than that requested because any caught signal will terminate the sleep() followi ...
分类:
编程语言 时间:
2016-05-24 20:54:47
阅读次数:
1217
今天学习Jspapplication内置对象的时候突然碰到了一个问题——http status 404 发生了什么? 提示The requested resource is not available 请求的资源不可用,这是什么鬼? 是我的代码有问题吗? 重新审视了以下代码,然而并没有看见什么明显的 ...
分类:
Web程序 时间:
2016-05-20 22:20:30
阅读次数:
152
进入指定目录,下载cd/usr/local/srcwgethttp://mirrors.sohu.com/apache/httpd-2.2.31.tar.bz2解压tarjxfhttpd-2.2.31.tar.bz2lscdhttpd-2.2.31进入目录lsvimINSTALL查看安装文档指定参数./configure\>--prefix=/usr/local/apache2\指定路径>--with-included-apr\安装依..
分类:
Web程序 时间:
2016-05-20 14:51:58
阅读次数:
251
版本问题,最直接的解决办法就是重新编辑安装git吧: 1. 下载:# wget -O git.zip https://github.com/git/git/archive/master.zip 2. 解压:# unzip git.zip 3. 进入git目录:# cd git-master 4. 编 ...
分类:
数据库 时间:
2016-05-14 00:45:18
阅读次数:
1475
js ajax在调用过程中如果请求外部连接,会报错。比如:
XMLHttpRequest cannot load ’'http://*****' No 'Access-Control-Allow-Origin' header is present on the requested resource
Origin 'http:/888*****' is therefore not all...
分类:
Web程序 时间:
2016-05-10 12:58:00
阅读次数:
194
我在使用接口注入时,犯了个错误,项目运行时出现“The requested resource (Servlet action is not available) is not available.”的提示。当我不经意地往控制栏里那么一瞅时,我发现了一条重要线索:“Failed to convert property value of type [com.sun.proxy.$Proxy1] to r...
分类:
编程语言 时间:
2016-05-07 09:12:36
阅读次数:
166
ajax请求(asynchronized)与普通请求(synchronized)的报文头(Header)不同:StringreqType=request.getHeader("X-Requested-With");
if(null==reqType){//normalrequest}
elseif(reqType.equals("XMLHttpRequest")){//ajaxrequest}1、requestheadersAccept:text/html,application/..
分类:
Web程序 时间:
2016-05-06 19:54:50
阅读次数:
296
git push 之后 出现这样一个错误 这个可能是因为 git 版本的问题 解决办法是: 在 克隆的文件夹下 的终端中 输入 命令 vim .git/config 然后 就会出现一个窗口 , 在其中修改 url , arenouba 是github的用户名 ...
分类:
数据库 时间:
2016-04-28 00:12:59
阅读次数:
339
今天项目中需要获取刚插入的自动增长 的主键值: 谁知道报错:Generated keys not requested. You need to specify Statement.RETURN_GENERATED_KEYS to Statement.execu 上网查了之后才知道原来是5.1.5的包 ...
分类:
数据库 时间:
2016-04-27 12:47:32
阅读次数:
277