소스 검색

Deprecate createMvcMatchers

Issue gh-16631
Josh Cummings 2 달 전
부모
커밋
d5f986f733
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      config/src/main/java/org/springframework/security/config/annotation/web/AbstractRequestMatcherRegistry.java

+ 4 - 0
config/src/main/java/org/springframework/security/config/annotation/web/AbstractRequestMatcherRegistry.java

@@ -112,7 +112,11 @@ public abstract class AbstractRequestMatcherRegistry<C> {
 	 * @param method the HTTP method to use or null if any should be used
 	 * @param mvcPatterns the Spring MVC patterns to match on
 	 * @return a List of {@link MvcRequestMatcher} instances
+	 * @deprecated Please use
+	 * {@link org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder}
+	 * instead
 	 */
+	@Deprecated
 	protected final List<MvcRequestMatcher> createMvcMatchers(HttpMethod method, String... mvcPatterns) {
 		Assert.state(!this.anyRequestConfigured, "Can't configure mvcMatchers after anyRequest");
 		ResolvableType type = ResolvableType.forClassWithGenerics(ObjectPostProcessor.class, Object.class);