这是使用POI创建简单的docx文件的方法:
XWPFdocument document = new XWPFdocument();XWPFParagraph tmpParagraph = document.createParagraph();XWPFRun tmpRun = tmpParagraph.createRun();tmpRun.setText("LALALALAALALAAAA");tmpRun.setFontSize(18);document.write(new FileOutputStream(new File("yourpathhere")));document.close();


