網站首頁 編程語言 正文
jdk版本不兼容 Error creating bean with name ‘springSecurityFilterChain‘
作者:不會拉網線的通信學生 更新時間: 2024-03-08 編程語言報錯如下
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
原因是jdk版本不兼容
<!--下面三個適配jdk11兼容性問題-->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.activation/activation -->
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.0-b170127.1453</version>
</dependency>
實際測試后依然會存在其他問題!!!!!
建議直接換到jdk8!!!!!!!!!!!!!!
原文鏈接:https://blog.csdn.net/qq_45689173/article/details/135072226
- 上一篇:沒有了
- 下一篇:沒有了
相關推薦
- 2022-10-07 Android?線程優化知識點學習_Android
- 2022-05-14 .NetCore?Web?Api?利用ActionFilterAttribute統一接口返回值格式及
- 2022-04-24 Redis?整數集合的具體使用(intset)_Redis
- 2022-10-14 VSC下編寫Makefile文件時,在終端運行make clean命令時報錯的解決方法
- 2022-05-17 qt 錯誤GL/gl.h: No such file or directory的解決方法
- 2022-09-18 C++如何判斷一個數是不是素數_C 語言
- 2022-09-22 SGL:Self-supervised Graph Learning for Recommendat
- 2022-10-02 React在組件中如何監聽redux中state狀態的改變_React
- 欄目分類
-
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支