有效的解决方案实际上非常简单:
URL url = this.getClass().getResource("/package/name/file.properties");p = new Properties();p.load(new FileInputStream(new File(url.getFile())));为什么没有人来这个呢?

有效的解决方案实际上非常简单:
URL url = this.getClass().getResource("/package/name/file.properties");p = new Properties();p.load(new FileInputStream(new File(url.getFile())));为什么没有人来这个呢?