• 2024-01-30接口地址忽略大小写
    最近在重写一个项目的接口,写完后运行测试发现接口存在大小写敏感的情况,但是我又找不到原因出在哪里,只能写一个配置类,通过实现WebMvcConfigurer接口的configurePathMatch方法,将AntPathMatcher的实例设置为路径匹配器,并将其设置为不区分大小写。这样,当请求的接口路径与定义的路径因为
  • 2023-12-24Spring工具类--路径匹配(AntPathMatcher)--使用/实例
    原文网址:Spring工具类--路径匹配(AntPathMatcher)--使用/实例_IT利刃出鞘的博客-CSDN博客简介整个Spring(SpringBoot)框架的路径解析都是按照Ant的风格来的,比如:Controller的请求路径、文件路径、包的路径。所以,掌握Ant的路径匹配很重要。Spring中的具体实现:org.springframewor
  • 2023-11-24Spring工具类-路径匹配(AntPathMatcher)
     1.介绍Spring(SpringBoot)框架的路径解析都是按照Ant的风格。Spring中的具体实现:org.springframework.util.AntPathMatcher?匹配1个字符/dir/app?匹配:/dir/app1、/dir/app2不匹配:/dir/app、/dir/app12、index/*匹配0到多个字符/dir/app*
  • 2023-09-11浅谈Apache Shiro CVE-2023-22602
    一、漏洞描述  ApacheShiro是一个可执行身份验证、授权、加密和会话管理的Java安全框架。  由于1.11.0及之前版本的Shiro只兼容Spring的ant-style路径匹配模式(patternmatching),且2.6及之后版本的SpringBoot将SpringMVC处理请求的路径匹配模式从AntPathMat
  • 2023-08-15好用的路径匹配
    importorg.springframework.util.AntPathMatcher;publicstaticvoidmain(String[]args){AntPathMatchermatcher=newAntPathMatcher();System.out.println(matcher.match("/user/**","/user"));System.out.pri