当前位置:   article > 正文

创建Springsecurity用jdk9时,出现Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError_jakarta.servlet.servletexception: handler dispatch

jakarta.servlet.servletexception: handler dispatch failed: java.lang.noclass

需要在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>

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/977549
推荐阅读
相关标签
  

闽ICP备14008679号