FileOutputStream(),这个加载地址的是为了创建你的文件,包这个错的原因是你没有这个到这个文件的地址的中间文件夹
例子:
String ls_outPath = "D://sss/sssss.docx"
FileOutputStream fopts = new FileOutputStream(ls_outPath);
这个sss这个文件夹必须要有
2.XWPFDocument(),这个东西是加载已有的文档,但是只能加载docx的,不能加载doc,加载doc会报错:这不是一个文件