- 博客(5)
- 收藏
- 关注
转载 sql server游标查询语句
1.查询所有使用游标的sql语句 DECLARE @spid NVARCHAR(100) DECLARE @SQL NVARCHAR(MAX) DECLARE CurSPID CURSOR FOR SELECT [spid] FROM sys.[sysprocesses] WHERE [spid] >= 50 OPEN CurSPID
2017-03-21 10:36:28
1594
转载 将相对路径转为绝对路径的方法
public static String relative2AbsolutePath(String content, String url, String tag, String property) throws URISyntaxException, MalformedURLException { String newContent = ""; if (con
2017-02-24 11:44:56
1624
转载 爬取网页证书问题的解决方法
在爬取https的网页过程中,出现如下异常: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unabl
2016-09-19 10:24:08
1729
原创 squid代理的设置
一、先检查squid软件是否安装 # rpm -qa|grep squid ---->>>未安装的安装 yum -y install squid 二、cd /etc/squid/去这个文件夹里面修改squid.conf文件 把squid.conf的内容换成 1.透明代理 http_port 3128 transparent http_access allow all 2
2016-09-09 10:28:00
437
原创 HttpClient设置代理的请求
在爬取数据的时候有的时候不能使用自己的真实ip爬取,需要简单配置一下用代理来完成。 public static String getHttpGet(String url){ //get请求 HttpHost proxy = new HttpHost("127.0.0.1", 1080); DefaultProxyRoutePlanner routePlan
2016-08-19 10:33:00
1656
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅