更新时间:2023-01-13 08:32:27
According to this post, that exception could mean that the .yml
file is simply not found. Since you changed your project structure, it is possible that the logic used to build the configPaths
needs to be modified for the new structure. Did you try to log the content of configPaths
to see if the paths are correct for the new structure?
还请确保.war
文件中包含.yml
文件.某些构建系统对资源的处理方式与Java类文件不同.
Also make sure that the .yml
files are included in the .war
file. Some build systems handle resources differently than java class files.