Yaml yaml = new Yaml();
File ymlFile = new File(this.getClass().getResource("/test.yml").getPath());
if (ymlFile != null && ymlFile.exists()) {
Map map = (Map) yaml.load(new FileInputStream(ymlFile));
}
yaml文件转map
最新推荐文章于 2023-04-25 21:28:27 发布