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 }