【问题标题】:Referenced bean 'org.springframework.security.securityContextSource' not found找不到引用的 bean 'org.springframework.security.securityContextSource'
【发布时间】:2013-04-18 23:43:55
【问题描述】:
我正在配置 Spring Security ldap。但是在 spring-security.xml 中,我得到了这个警告
Referenced bean 'org.springframework.security.securityContextSource' not found
在<security:authentication-manager> 线上
谁能告诉我,可能是什么问题???
【问题讨论】:
标签:
spring
spring-security
【解决方案1】:
除了依赖要求之外,请确保web.xml 中引用了您的ldap.xml 配置文件(我希望您的bean 实际在其中声明),但从事情的声音来看,迈克尔的回答可能是正确的。
【解决方案2】:
请确保您有依赖项 spring-ldap-core。
3.1.3 示例
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
<version>3.1.3.RELEASE</version>
</dependency>