为了账号安全,请及时绑定邮箱和手机立即绑定

启动出现了错误,请问该怎么解决?

启动出现了错误,请问该怎么解决?

梦里花落0921 2023-03-13 16:12:49
rg.springframework.beans.factory.BeanCreationException:Error creating bean with name 'authenticationProcessingFilterEntryPoint' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-security.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.<init>()at
查看完整描述

1 回答

?
POPMUISE

TA贡献1765条经验 获得超5个赞

这个报错描述主要是这么两句:

  1. Error creating bean with name 'authenticationProcessingFilterEntryPoint' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-security.xml]

    这说明创建失败是因为创建一个叫authenticationProcessingFilterEntryPoint的bean失败了,这个bean配置在applicationContext-security.xml,此时你就可以先从这个描述找到配置文件,然后找到相应的类

  2. No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.<init>()

    LoginUrlAuthenticationEntryPoint

    失败的类叫LoginUrlAuthenticationEntryPoint,然后是没有默认的构造函数

所以建议你先给LoginUrlAuthenticationEntryPoint加一个默认的空的构造函数,再启动试试


查看完整回答
反对 回复 2023-03-15
  • 1 回答
  • 0 关注
  • 179 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信