代码片 XWPFDocument doc = WordUtil.createSimpleWord(file, word);//file 对应的文件模板,word传递参数的实体对象 List<XWPFParagraph> paragraphs = doc.getParagraphs(); Integer ccfs = word.