IDEA不能提示导入java.io.File类,但是自己手写import没问题,最后找到了问题所在 打开setting---输入auto import-----右边有一行Exclude from Import and Completion----把java.io.File减掉