java.io.FileNotFoundException: (系统找不到指定的路径。)

Posted lick468

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java.io.FileNotFoundException: (系统找不到指定的路径。)相关的知识,希望对你有一定的参考价值。

报错 :java.io.FileNotFoundException: (系统找不到指定的路径。)

java.io.FileNotFoundException: E:\code\operem_demo\src\main\resources\static\upload\zip\841195824A88E198C82A9ABB8023522D.zip (系统找不到指定的路径。)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)

错误分析 路径不存在,所以报错

解决方法 : 检查路径,文件是否存在,如果不存在是否创建。

以上是关于java.io.FileNotFoundException: (系统找不到指定的路径。)的主要内容,如果未能解决你的问题,请参考以下文章

在 Android 中解码 jpeg