/BOOT-INF/classes!/application.yml (No such file or directory)
SpringBoot今天在开发SpringBoot项目时,写了以下代码:Stringpath=ClassUtils.getDefaultClassLoader().getResource("").getPath();Readerreader=newFileReader(path+"/application.yml");本意是通过获取classpath类路径,然后读取application,yml中