gpt4 book ai didi

java - 安全:filter-chain pattern match url have symbol '?'

转载 作者:太空宇宙 更新时间:2023-11-04 12:53:15 26 4
gpt4 key购买 nike

  • 我想使用 spring 过滤此网址: http://localhost:9280/spring-filter/login.html?collection=abc#/input
  • 我使用代码过滤器 <security:filter-chain pattern="/*/input" filters="collectionLoginFilter" />但不起作用。
  • 如果我没有符号“?”在网址 http://localhost:9280/spring-filter/login.html/input ,它会起作用。
  • 问题:我想使用符号“?”。我该怎么办?

最佳答案

我认为你做不到。 Spring只分析'?'之前的URL。 '?' 之后还有什么吗?是参数

检查spring-security documentation ,特别是这些行

Un-normalized requests are automatically rejected by default, and path parameters and duplicate slashes are removed for matching purposes

关于java - 安全:filter-chain pattern match url have symbol '?' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35618043/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com