java word转html 报错 org/apache/poi/xwpf/usermodel/IRunBody
最终解决的办法是修改jar包版本,一定要对应上。
1 <dependency> 2 <groupId>org.apache.poi</groupId> 3 <artifactId>poi</artifactId> 4 <version>3.10.1</version> 5 </dependency> 6 <dependency> 7 <groupId>org.apache.poi</groupId> 8 <artifactId>poi-ooxml-schemas</artifactId> 9 <version>3.10.1</version> 10 </dependency> 11 <dependency> 12 <groupId>org.apache.poi</groupId> 13 <artifactId>poi-ooxml</artifactId> 14 <version>3.10.1</version> 15 </dependency> 16 <dependency> 17 <groupId>org.apache.poi</groupId> 18 <artifactId>poi-scratchpad</artifactId> 19 <version>3.9</version> 20 </dependency> 21 22 <dependency> 23 <groupId>fr.opensagres.xdocreport</groupId> 24 <artifactId>xdocreport</artifactId> 25 <version>2.0.1</version> 26 </dependency> 27 28 <dependency> 29 <groupId>fr.opensagres.xdocreport</groupId> 30 <artifactId>fr.opensagres.xdocreport.document</artifactId> 31 <version>2.0.1</version> 32 </dependency> 33 34 <dependency> 35 <groupId>fr.opensagres.xdocreport</groupId> 36 <artifactId>org.apache.poi.xwpf.converter.core</artifactId> 37 <version>1.0.6</version> 38 </dependency> 39 40 <dependency> 41 <groupId>fr.opensagres.xdocreport</groupId> 42 <artifactId>org.apache.poi.xwpf.converter.pdf</artifactId> 43 <version>1.0.6</version> 44 </dependency> 45 46 <dependency> 47 <groupId>fr.opensagres.xdocreport</groupId> 48 <artifactId>org.apache.poi.xwpf.converter.xhtml</artifactId> 49 <version>1.0.6</version> 50 </dependency>