【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
下面的代码在开发时运行正常,打成jar包就出错,。。。private Properties loadProperty() { if (this.prop == null) { try { System.out.println("loading property:" + path); InputStream in = new BufferedInputStream(new FileInputStream(new File(path))); System.out.println(in); prop = new Properties(); System.out.println("prop:" + prop); prop.load(in); System.out.println("数据源配置文件:" + path + "读取成功"); } catch (FileNotFoundException e) { e.printStackTrace(); throw new RuntimeException(e); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } } return this.prop; }