1. 读取Jar包内配置文件:
InputStream in = this.getClass().getClassLoader().getResourcesAsStream("/configu.properties");
2. 读取Jar包外配置文件:
String file = System.getproperty("user.dir") + "/conf/configue.properties";
InputStream in = new BufferedInputStream(new FileInputStream(file));