Skip to content

Commit d5f986f

Browse files
committed
Deprecate createMvcMatchers
Issue gh-16631
1 parent f0d523b commit d5f986f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/AbstractRequestMatcherRegistry.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ public C anyRequest() {
112112
* @param method the HTTP method to use or null if any should be used
113113
* @param mvcPatterns the Spring MVC patterns to match on
114114
* @return a List of {@link MvcRequestMatcher} instances
115+
* @deprecated Please use
116+
* {@link org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder}
117+
* instead
115118
*/
119+
@Deprecated
116120
protected final List<MvcRequestMatcher> createMvcMatchers(HttpMethod method, String... mvcPatterns) {
117121
Assert.state(!this.anyRequestConfigured, "Can't configure mvcMatchers after anyRequest");
118122
ResolvableType type = ResolvableType.forClassWithGenerics(ObjectPostProcessor.class, Object.class);

0 commit comments

Comments
 (0)