java 打jar包配置文件和jar包通级


	java 打jar包配置文件和jar包通级
[编程语言教程]

public class jarTs {
    public static void main(String[] args) throws IOException {
        String path =System.getProperty("user.dir");
        System.out.println("user.dir:  " + path);
        String proPath = path  + File.separator +"properties";
        FileInputStream in = new FileInputStream(proPath);
        Properties props = new Properties();
        props.load(in);
        in.close();
        String libPathKey = "lib_path";
        String libPath = props.getProperty(libPathKey);
        System.out.println("lib文件路径," + libPath);
    }
}
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » java 打jar包配置文件和jar包通级