diff --git a/spring-web/src/main/java/org/springframework/http/HttpMethod.java b/spring-web/src/main/java/org/springframework/http/HttpMethod.java index 608d7d535a1..348692d55d0 100644 --- a/spring-web/src/main/java/org/springframework/http/HttpMethod.java +++ b/spring-web/src/main/java/org/springframework/http/HttpMethod.java @@ -110,6 +110,10 @@ public final class HttpMethod implements Comparable, Serializable { /** * Return an {@code HttpMethod} object for the given value. + *

Note that this lookup is case-sensitive. For predefined constants, + * the method value must be provided in uppercase (e.g., {@code "GET"}, + * {@code "POST"}). If no predefined constant matches, a new + * {@code HttpMethod} instance is returned for the given value as-is. * @param method the method value as a String * @return the corresponding {@code HttpMethod} */