一.问题由来 新项目的开发中,打包方式由war包改为了jar包的方式,这样在部署的时候更加的方便.测试环境使用pm2这个工具来管理项目的运行,停止,重启等等非常方便. 可是当测试人员在测试项目中的文件下载时,就报了一个奇怪的错误,class path resource xxxxxx cannot be resolved to URL because it does not exist.大意就是说 某个路径下的资源文件不存在,下载的是模板excel文件,项目中就直接把它放在resources路…
class path resource [spring/] cannot be resolved to URL because it does not exist; 在 pom.xml 里添加如下代码 <build> <finalName>ForestBlog</finalName> <resources> <resource> <directory>src/main/java</directory> <includ…