jwt生成token报错ClassNotFoundException: javax.xml.bind.DatatypeConverter

jwt生成token报错ClassNotFoundException: javax.xml.bind.DatatypeConverter

解决方案有两个

  • 降版本到jdk1.8

  • 导包

<dependency>
    <groupId>javax.xml.bindgroupId>
    <artifactId>jaxb-apiartifactId>
    <version>2.3.0version>
dependency>
<dependency>
    <groupId>com.sun.xml.bindgroupId>
    <artifactId>jaxb-implartifactId>
    <version>2.3.0version>
dependency>
<dependency>
    <groupId>com.sun.xml.bindgroupId>
    <artifactId>jaxb-coreartifactId>
    <version>2.3.0version>
dependency>
<dependency>
    <groupId>javax.activationgroupId>
    <artifactId>activationartifactId>
    <version>1.1.1version>
dependency>

你可能感兴趣的:(jwt生成token报错ClassNotFoundException: javax.xml.bind.DatatypeConverter)