diff --git a/web/src/main/java/org/springframework/security/web/FilterChainProxy.java b/web/src/main/java/org/springframework/security/web/FilterChainProxy.java index c48d6b972b..fb3aa11d58 100644 --- a/web/src/main/java/org/springframework/security/web/FilterChainProxy.java +++ b/web/src/main/java/org/springframework/security/web/FilterChainProxy.java @@ -258,6 +258,11 @@ public class FilterChainProxy extends GenericFilterBean { /** * Convenience method, mainly for testing. + *
+ * Attempt to find the matching filter chain based on the given {@code url}. Note that + * the URI is often not enough information and this method should be used with + * caution. Instead, consider using Spring Security's testing support that mocks a + * full HTTP request. * @param url the URL * @return matching filter list */