From f6be4b4f0b7a7f459ec3f79258c66458e7092d3a Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 3 Dec 2025 18:49:31 +0700 Subject: [PATCH] Update `FilterChainProxy#getFilters(String)` javadoc Signed-off-by: Tran Ngoc Nhan --- .../org/springframework/security/web/FilterChainProxy.java | 5 +++++ 1 file changed, 5 insertions(+) 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 7795f2c8bac..57f33e0029d 100644 --- a/web/src/main/java/org/springframework/security/web/FilterChainProxy.java +++ b/web/src/main/java/org/springframework/security/web/FilterChainProxy.java @@ -254,6 +254,11 @@ private List getFilters(HttpServletRequest request) { /** * 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 */