解决方法:
Map map = null;
Yaml yaml = new Yaml();
File ymlFile = new File("c:/src/test/java/application.yml");
if (ymlFile != null && ymlFile.exists()) { map = (Map) yaml.load(new FileInputStream(ymlFile)); }
posted on 2018-12-28 11:55 我是司 阅读(5645) 评论(0) 编辑 收藏 举报