【问题标题】:Modify spring security intercept URL dynamically动态修改spring security拦截URL
【发布时间】:2013-10-27 08:06:12
【问题描述】:

我可以通过任何方式动态修改任何 url 的拦截 url 模式的“访问”参数吗?

这意味着;我有用于不同目的的 URL,突然我想停止(从 UI)一个特定的 URL(改变它的 access="denyAll")。

有什么办法吗??

【问题讨论】:

    标签: spring spring-security


    【解决方案1】:

    您应该实现 FilterSecurityInterceptor 使用的自定义类 FilterInvocationSecurityMetadataSource。详情看这里How to dynamically decide <intercept-url> access attribute value in Spring Security?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-15
      • 2013-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多