当前位置: 首页 > 工具软件 > Classp > 使用案例 >

启动报错:Error creating bean with name 'springSecurityFilterChain' defined in class path resource

田志
2023-12-01

1、问题描述

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.NoClassDefFoundError: javax/xml/bind/JAXBException

2、问题解决
发现是自己使用idea 的时候jdk 配置错误,试用了jdk11,换成jdk8就好了

 类似资料: