mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-07 03:02:23 +00:00
Deprecate createMvcMatchers
Issue gh-16631
This commit is contained in:
parent
f0d523b0ab
commit
d5f986f733
@ -112,7 +112,11 @@ public abstract class AbstractRequestMatcherRegistry<C> {
|
|||||||
* @param method the HTTP method to use or null if any should be used
|
* @param method the HTTP method to use or null if any should be used
|
||||||
* @param mvcPatterns the Spring MVC patterns to match on
|
* @param mvcPatterns the Spring MVC patterns to match on
|
||||||
* @return a List of {@link MvcRequestMatcher} instances
|
* @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) {
|
protected final List<MvcRequestMatcher> createMvcMatchers(HttpMethod method, String... mvcPatterns) {
|
||||||
Assert.state(!this.anyRequestConfigured, "Can't configure mvcMatchers after anyRequest");
|
Assert.state(!this.anyRequestConfigured, "Can't configure mvcMatchers after anyRequest");
|
||||||
ResolvableType type = ResolvableType.forClassWithGenerics(ObjectPostProcessor.class, Object.class);
|
ResolvableType type = ResolvableType.forClassWithGenerics(ObjectPostProcessor.class, Object.class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user