diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java index 75db76d0e12..5cab7169d41 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java @@ -156,9 +156,10 @@ public interface ServerRequest { Map attributes(); /** - * Get the first query parameter with the given name, if present. + * Get the first parameter with the given name, if present. * @param name the parameter name * @return the parameter value + * @see HttpServletRequest#getParameter(String) */ default Optional param(String name) { List paramValues = params().get(name); @@ -175,7 +176,8 @@ public interface ServerRequest { } /** - * Get all query parameters for this request. + * Get all parameters for this request. + * @see HttpServletRequest#getParameterMap() */ MultiValueMap params();