获得当前运行程序相对文件的物理位置: String filePath = ClassLoader.getSystemResourceAsStream("com/companyName/abc.properties").getFile();