1
0
mirror of synced 2026-08-05 17:57:15 +00:00
This commit is contained in:
Josh Cummings
2025-06-24 15:20:24 -06:00
parent 75f30d1701
commit ef50ff29ad
174 changed files with 713 additions and 2967 deletions
@@ -41,7 +41,7 @@ import org.springframework.security.web.context.SecurityContextRepository;
import org.springframework.security.web.csrf.CsrfFilter;
import org.springframework.security.web.csrf.CsrfTokenRepository;
import org.springframework.security.web.csrf.HttpSessionCsrfTokenRepository;
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher;
import org.springframework.security.web.util.matcher.AnyRequestMatcher;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
@@ -226,7 +226,7 @@ public class WebTestUtilsTests {
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// @formatter:off
http
.securityMatcher(new AntPathRequestMatcher("/willnotmatchthis"));
.securityMatcher(PathPatternRequestMatcher.withDefaults().matcher("/willnotmatchthis"));
return http.build();
// @formatter:on
}