在舊版的 Spring Security 中,路徑匹配方法有很多,但是新版 Spring Security 對(duì)這些方法進(jìn)行了統(tǒng)一的封裝,都是調(diào)用 requestMatchers 方法進(jìn)行處理: 1 2 3 4 publicC requestMatchers(RequestMatcher... requestMatchers) { Assert.state(!this.anyRequestConfigured,"Can't configure requestMatchers after anyRequest...
www.dbjr.com.cn/program/319998h...htm 2025-6-7