问题由来昨天一网友在segmentfault.com上提问,无法做404重定向打开对方的网站随便输入一个错误的地址发现给出了404代码,但是页面完全空白,并没有显示404页面的设定内容当时就明白啥情况了,只要在nginx.conf配置文件上加上一句fastcgi_intercept_errors o...
分类:
其他好文 时间:
2015-09-16 14:11:06
阅读次数:
107
(我操作的系统是kali linux)1.利用burpsuite代理设置拦截浏览器请求(具体操作步骤可参考:http://www.cnblogs.com/hito/p/4495432.html)2.拦截完成的请求具体内容在“Proxy--Intercept”中完整展现3.右键选中-copy to f...
分类:
数据库 时间:
2015-09-11 12:16:30
阅读次数:
377
一、自定义拦截器: 继承AbstractInterceptor,覆写intercept方法,实现功能逻辑,最后在Struts.xml文件中配置了自定义拦截器,首先自定义拦截器栈,1 2 3 4 5 6 7 8 9 然后自定义拦截器栈,使得单个包内或者整个项目经过自定义拦截器最后可以利用自定义拦截器....
分类:
其他好文 时间:
2015-09-02 21:59:31
阅读次数:
350
/**
?*?简单线性回归算法
?*?@param?array?y轴数据
?*?@param?array?x轴数据
?*?@returns?array(slope,intercept,r2)
?*/
function?linearRegression(y,?x)?{
????var?lr?=?{};
????...
分类:
编程语言 时间:
2015-08-30 23:38:02
阅读次数:
236
server {...include 404.conf;...}vi 404.confproxy_intercept_errors on;error_page 404 @404;error_page 503 @503;error_page 502 @502;error_page 403 @403;e...
分类:
其他好文 时间:
2015-08-18 13:44:39
阅读次数:
99
问题描述Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.解决思路1.定义Line类{slope; intercept; isVertical; isHor...
分类:
其他好文 时间:
2015-08-11 22:53:24
阅读次数:
163
新配置一个新的服务器后,访问失败,nginx配置有404页面,但仍然报filenotfounderror_page404http://xxx.com/404.html;查了一下资料,需要在nginx关于fastcgi配置一个参数:fastcgi_intercept_errorson;关于:fastcgi_intercept_errors语法:fastcgi_intercept_errorson|off默..
分类:
其他好文 时间:
2015-08-06 18:48:19
阅读次数:
286
* 所有的拦截器都需要实现Interceptor接口或者继承Interceptor接口的扩展实现类 * 要重写init()、intercept()、destroy()方法 * init()是在struts2框架运行时执行,在拦截器的生命周期中只执行一次,可以做必要的内容的初始化工作 * inte.....
分类:
其他好文 时间:
2015-08-05 14:23:27
阅读次数:
139
1.拦截器的用途 拦截器适合封装一些通用的处理,便于重复利用。例如请求参数传递给Action属性,日志的记录,权限检查,事物处理等。拦截器通过配置方式调用,因此使用方法比较灵活,便于维护和扩展。2.创建拦截器组件 创建一个类,实现Interceptor接口,并实现intercept方法。 pu...
分类:
其他好文 时间:
2015-08-04 00:26:18
阅读次数:
120
自定义拦截器,首先新建一个继承自AbstractInterceptor类的类,然后重写intercept方法,代码如下public class HelloInterceptor extends AbstractInterceptor { @Override public String i...
分类:
其他好文 时间:
2015-08-03 12:56:51
阅读次数:
252