😑😑😑jdk版本太高

IDEA构建项目报错:java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter

项目出是构建在jdk8,在用jdk11运行时报错!

原因:jdk版本过高

解决方案:在pom.xml添加依赖

 	   <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>
posted @ 2020-06-08 09:26  WeirJin  阅读(326)  评论(0)    收藏  举报