在构建项目的时候使用的是jdk9,项目访问时报如下错误:
故障原因:
使用了jdk版本过高
我是直接在pom.xml中添加如下依赖可以解决(也可以试试降低jdk的版本)
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<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.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
哈哈,完成,不要忘了一键三连,支持支持博主呀。