`
文章列表
ProtectionDomain pd = StringUtils.class.getProtectionDomain();           CodeSource cs = pd.getCodeSource();           System.out.println(cs.getLocation()); 

https请求模拟

package com.sumy.https; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.SocketTimeoutException; import java.security.KeyManagementException; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAl ...
idea14.4 scala插件安装   把下载的.zip格式的scala插件放到Intellij的安装的plugins目录下;  再安装刚刚放到Intellij的plugins目录下的scala插件(注:直接安装zip文件)
idea 14.4
@Autowired BanksController banksController; @TestpublicvoidtestAdd() throws IOException { RegisterConfig.RootPath = "E:\\work\\Admin"; FileInputStream fis = new FileInputStream("E:\\Images\\1.gif"); MockMultipartFile file = new MockMultipartFile("file","1.gif", ...
var lastId=0;
java实现线程池多并发队列后进先出 目前默认的队列都是先进先出的模式,都是我们可以通过继承LinkedBlockingDeque来实现后进先出,原理就是将take()和poll()方法重写一下,分别调用takeLast()和pollLast()

apache ftp server

ftp 
apache ftp server

ftp server源码

ftp server源码
Apache FtpServer是纯Java写的开源FTP服务器。 下载地址http://mina.apache.org/ftpserver/ 在这里我们先不讲FTPServer的开发,主要简单认识下如何搭建FTP。   1.       

ftp服务创建

package examples.ftpServer; import <a href="http://lib.csdn.net/base/javase" class='replace_word' title="Java SE知识库" target='_blank' style='color:#df3434; font-weight:bold;'>Java</a>.io.File; import org.apache.ftpserver.FtpServer; import org.apache.ftpserver. ...

linux 函数

1. 在shell文件内部定义函数并引用: [~/shell/function]# cat factorial.sh  #!/bin/bash function factorial { factorial=1 for (( i=1;i <= $1;i++ ))         do         factorial=$[ $factorial * $i ]         done echo $1的阶乘是:$factorial } echo '程序名':$0,用于求阶乘 factorial $1 [~/shell/function]# ./factori ...

linux 笔记

1、数组申明:array_name=(value0 value1 value2 value3)     2、判断数组中是否包含某个变量 : if ! [[ "${array_name[@]}" =~ $v ]]    ~表示正则   3、多重循环:  ## 可以使用continue 和break     $ for i in 1 2 3 4 5 6 7 8 9 0     > do     > for j in 1 2 3 4 5 6 7 8 9 10     > do     > echo $j     > done     > ...
select a.v1-b.v1  from (select id,v1 from t2 where id>1) a, (select id,v1 from t2 where id<>(select max(id) from t2)) b where a.id=b.id+1
证书制作工具
Global site tag (gtag.js) - Google Analytics