java.lang.TypeNotPresentException异常。注意后面为Type [unknown] not present!各种博客论坛也没有找到答案,最后在国外网址找到解决方法!记录一下希望能帮到其他人!
解决方法:
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.1</version>
</dependency>
在自己项目的pom文件中加入。
原网址 点击进入 可能需要科学上网!