解决方法:

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));
       }

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-09-09
  • 2022-01-17
  • 2021-05-16
  • 2022-02-09
  • 2022-02-23
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案