java.io.IOException:“文件名,目录名或卷标语法不正确”

今天在项目代码编写中,出现了这样的问题:

java.io.IOException: The filename, directory name, or volume label syntax is incorrect

    at java.io.WinNTFileSystem.createFileExclusively(Native Method)

    at java.io.File.createNewFile(File.java:850)

经过debug,发现,是文件的路径错误。

猜你喜欢

转载自blog.csdn.net/wangchaox123/article/details/93711423
今日推荐