问题:

 

java11 删除了 javax.xml.bind*

 

 

 

解决:

<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>

 

 

参考:

https://jesperdj.com/2018/09/30/jaxb-on-java-9-10-11-and-beyond/

发表评论

电子邮件地址不会被公开。