Referenced bean 'org.springframework.security.securityContextSource' not found

混江龙づ霸主 提交于 2019-12-25 03:36:23

问题


I am configuring spring security ldap. But in spring-security.xml, m getting this warning

Referenced bean 'org.springframework.security.securityContextSource' not found

on <security:authentication-manager> line

Can anyone tell me, what can be the problem???


回答1:


Please ensure you have in dependencies spring-ldap-core. Example for 3.1.3

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-ldap</artifactId>
    <version>3.1.3.RELEASE</version>
</dependency>



回答2:


In addition to the dependency requirement, make sure your ldap.xml configuration file (in which I expect your bean is actually declared) is referenced in web.xml, but from the sounds of things, Michael's answer is probably correct.



来源:https://stackoverflow.com/questions/16208672/referenced-bean-org-springframework-security-securitycontextsource-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!