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

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







梦里花落0921
浏览 188回答 1
1回答

POPMUISE

这个报错描述主要是这么两句: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;&nbsp;nested exception is java.lang.NoSuchMethodException: org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.<init>()LoginUrlAuthenticationEntryPoint失败的类叫LoginUrlAuthenticationEntryPoint,然后是没有默认的构造函数所以建议你先给LoginUrlAuthenticationEntryPoint加一个默认的空的构造函数,再启动试试
打开App,查看更多内容
随时随地看视频慕课网APP