package com.sinosoft.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Ftp {
public static void main(String[] args)
throws IOException {
InputStream in = FTPUtil.class.getClassLoader().getResourceAsStream("config.properties");
if (in == null) {
System.out.println("配置文件env.properties读取失败");
} else {
Properties properties = new Properties();
properties.load(in);
System.out.println("______" + properties.getProperty("userName"));
}
}
}
userName=fengge
passWord=zhenshuai