【问题标题】:"java.lang.IllegalStateException: This object has not been built" when adding custom filter添加自定义过滤器时出现“java.lang.IllegalStateException: This object has not been built”
【发布时间】:2017-04-17 14:59:15
【问题描述】:

我在 BasicAuth 之前添加了自定义过滤器

<sec:custom-filter ref="authorizationFilter" before="BASIC_AUTH_FILTER"/>

过滤器有效,也实现了过滤器,但我在AbstractSecurityBuilder.getObject() 得到了那个异常。

为什么不调用所有“spring-zoo”就无法过滤请求?

【问题讨论】:

    标签: spring spring-security


    【解决方案1】:

    您的授权过滤器是否注册为 Spring bean?

    【讨论】:

      猜你喜欢
      • 2018-09-26
      • 2020-03-13
      • 1970-01-01
      • 2013-07-05
      • 2023-01-24
      • 2021-07-13
      • 2018-12-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多