InputStream in = UCClient.class.getClassLoader().getResourceAsStream(
"config.properties");
Properties properties = new Properties();
try {
properties.load(in);
saveFilePath = properties.getProperty("saveFilePath");
} catch (Exception e) {
e.printStackTrace();
}
在java类中获取配置文件内容
最新推荐文章于 2024-07-24 00:04:57 发布