问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
File file = ResourceUtils.getFile(filePath);
in = new BufferedInputStream(new FileInputStream(file));
Yaml props = new Yaml();
运行结果及报错内容
ResourceUtils 读取yaml文件中key 对应的,这个依赖是哪个呢?
File file = ResourceUtils.getFile(filePath);
in = new BufferedInputStream(new FileInputStream(file));
Yaml props = new Yaml();
ResourceUtils 读取yaml文件中key 对应的,这个依赖是哪个呢?
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.26</version>
</dependency>