소스 검색

Add deprecation warning to CsrfDsl#ignoringAntMatchers

Issue gh-11347
Marcus Da Coregio 2 년 전
부모
커밋
8a5aed2983
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      config/src/main/kotlin/org/springframework/security/config/web/servlet/CsrfDsl.kt

+ 1 - 0
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
     }