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个赞
这个报错描述主要是这么两句:
Error creating bean with name 'authenticationProcessingFilterEntryPoint' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-security.xml]
这说明创建失败是因为创建一个叫authenticationProcessingFilterEntryPoint的bean失败了,这个bean配置在applicationContext-security.xml,此时你就可以先从这个描述找到配置文件,然后找到相应的类
No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.<init>()
LoginUrlAuthenticationEntryPoint
失败的类叫LoginUrlAuthenticationEntryPoint,然后是没有默认的构造函数
所以建议你先给LoginUrlAuthenticationEntryPoint加一个默认的空的构造函数,再启动试试
- 1 回答
- 0 关注
- 289 浏览
添加回答
举报
0/150
提交
取消