大神 有个问题就是 桌面创建txt和 IDEA创建txt 效果不同 是二者有什么不一样吗
我如果复制桌面创建的txt的话会显示找不到该文件
“Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [abc.txt] cannot be opened because it does not exist”
我测试了很久换路径改写法 最后我重新在IDEA中创建txt文件 立刻就读出出来了
这点您有什么见解吗
正解
Sign in to make a reply
木木财钦
大神 有个问题就是 桌面创建txt和 IDEA创建txt 效果不同 是二者有什么不一样吗
我如果复制桌面创建的txt的话会显示找不到该文件
“Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [abc.txt] cannot be opened because it does not exist”
我测试了很久换路径改写法 最后我重新在IDEA中创建txt文件 立刻就读出出来了
这点您有什么见解吗