Spring URL 模式中使用 # 的安全性

Spring Security with # in URL Pattern

我正在尝试让应用程序 url 模式在安全性中匹配 - http.xml 并且 运行 遇到一些与 # 符号有关的问题。

这是一个示例 url: http://localhost:8080/test/#test2/foo

这是我试图用来匹配它的 security-http

<sec:intercept-url pattern="^test/#test2/.*$" access="permitAll"/>

但是,模式中的“#”似乎不起作用。

对此有什么想法吗?

谢谢!

URL 中散列 (#) 之后(包括)的任何内容都不会在请求中发送到服务器,因此您的服务器永远不会看到该信息。