在Spring安全性中匹配url模式的任何其他方法?

时间:2014-07-06 15:29:47

标签: java regex spring spring-security

我有<sec:http>

的以下示例配置
    <sec:http
authentication-manager-ref="blMyUserAuthenticationManager"
disable-url-rewriting="true"
request-matcher="regex"
pattern="(/logout/myuser|/login/myuser|/login/myuser?error=true|/login/myUser_post.htm|/myuser/account"
auto-config="false">

当我想这样做的时候..

    <sec:http
authentication-manager-ref="blMyUserAuthenticationManager"
disable-url-rewriting="true"
request-matcher="regex"
pattern="(/logout/myuser|/login/myuser**|/myuser/**)"
auto-config="false">

我得到 PatternSyntaxException:悬空元字符&#39; *&#39;错误

我该如何解决这个问题?

提前致谢。希望你能尽快回复。

0 个答案:

没有答案
相关问题