【问题标题】: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>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-05-11
        • 2015-04-05
        • 1970-01-01
        • 2020-10-26
        • 2013-03-02
        • 2017-09-23
        • 2018-12-22
        • 1970-01-01
        相关资源
        最近更新 更多