While reading the content at the time of JDK version upgrade, was java.xml absorbed, if the JDK version upgrade, should also enhance dependent on third-party version.
jdk1.8 with dom4j1.6.1 there is no problem.
jdk1.10 with this problem dom4j1.6.1.
jdk1.10 with dom4j2.1.0 there is no problem.
JDK10 recommended dom4j dependent:
<dependency>
<groupId> dom4j </ groupId>
<artifactId> dom4j </ artifactId>
<Version> 2.1.0 </ Version>
</ dependency>
Maven repository Ali dom4j highest version is 1.6.1 , if Ali Maven repository, download dom4j2.1.0 need to manually install this jar package to the local Maven repository. Reference: https: //blog.csdn.net/haoranhaoshi/article/details/93315635