From 8a5aed2983b0515320f187da447fe782af213f88 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Thu, 6 Oct 2022 13:50:38 -0300 Subject: [PATCH] Add deprecation warning to CsrfDsl#ignoringAntMatchers Issue gh-11347 --- .../org/springframework/security/config/web/servlet/CsrfDsl.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/config/src/main/kotlin/org/springframework/security/config/web/servlet/CsrfDsl.kt b/config/src/main/kotlin/org/springframework/security/config/web/servlet/CsrfDsl.kt index 1a8fdf88c7..abedac40df 100644 --- a/config/src/main/kotlin/org/springframework/security/config/web/servlet/CsrfDsl.kt +++ b/config/src/main/kotlin/org/springframework/security/config/web/servlet/CsrfDsl.kt @@ -54,6 +54,7 @@ class CsrfDsl { * @param antMatchers the ANT pattern matchers that should not use CSRF * protection */ + @Deprecated("Use ignoringRequestMatchers instead") fun ignoringAntMatchers(vararg antMatchers: String) { ignoringAntMatchers = antMatchers }