目录
引言
在开发过程中你的maven依赖有冲突,但是打包的Jar包照样可以运行只有使用到冲突包里的功能时会报依赖冲突错误比如:
java.lang.NoClassDefFoundError: org/apache/poi/util/POILogFactory
at org.apache.poi.hwpf.model.FileInformationBlock.<clinit>(FileInformationBlock.java:52) ~[poi-scratchpad-4.1.2.jar!/:4.1.2]
at org.apache.poi.hwpf.HWPFDocumentCore.<init>(HWPFDocumentCore.java:170) ~[poi-scratchpad-4.1.2.jar!/:4.1.2]
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:193) ~[poi-scratchpad-4.1.2.jar!/:4.1.2]
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:177) ~[poi-scratchpad-4.1.2.jar!/:4.1.2]
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:165) ~[poi-scratchpad-4.1.2.jar!/:4.1.2]
at com.zxx.hand.WordHandler.handContent(WordHandler.java:47) ~[classes!/:1.0]
at com.zxx.hand.DocumentAttachmentHandler.getAttachmentInfo(DocumentAttachmentHandler.java:51) ~[c