public static void main(String[] args){
private static String ip = "";//服务器IP
private static String user = "";//服务器用户
private static String pwd = "";//密码
public static String port = "";//端口号
private static String sourcePath = "";//本地文件路径
private static String destinationPath = "";//上传文件路径
static Properties prop = null;
static {
prop = new Properties();
try {
prop.load(VerifyLicense.class.getResourceAsStream("/LicenseVerify.properties"));//配置文件名称
ip = prop.getProperty("ip");
user = prop.getProperty("user");
pwd = prop.getProperty("pwd");
port = prop.getProperty("port");
sourcePath = prop.getProperty("sourcePath");
destinationPath = prop.getProperty("destinationPath");
} catch (IOException e) {
e.printStackTrace();
}
}
}