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 ba011e6d22..90557d4e10 100644 --- a/spring-web/src/main/java/org/springframework/http/HttpMethod.java +++ b/spring-web/src/main/java/org/springframework/http/HttpMethod.java @@ -146,7 +146,7 @@ public final class HttpMethod implements Comparable, Serializable { @Nullable @Deprecated public static HttpMethod resolve(@Nullable String method) { - return (method != null ? mappings.get(method) : null); + return (method != null ? valueOf(method) : null); }