java.io.FileNotFoundException: aaa.txt (系統找不到指定的文件。)

你是有這個文件了,可是File file= new File("aaa.txt"); 你只給了文件名,沒有給路徑,致使後來 file 讀取的時候找不到文件。ip 一、能夠指定路徑: File file= new File("D:/aaa.txt");get 二、Controller中能夠經過 MultipartFile filefile File file0 = new File(file.get
相關文章
相關標籤/搜索