java.io.FileNotFoundException: E:\workspace\Atcrowdfunding\Atcrowdfunding-main\target\Atcrowdfunding-main\pics\adv\27966747-70b2-454d-9dd8-c3f724039477.jpg (系统找不到指定的路径。)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
有相关路径却找不到
上传失败:
只要在pom文件中加入下面代码就可以了
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<includeEmptyDirectories>true</includeEmptyDirectories>
</configuration>
</plugin>
然后清理一下maven的缓存就ok了
清理--运行---编译----运行---安装----运行