diff --git a/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java b/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java index 639bc9bca7e..746e0f3950e 100644 --- a/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java +++ b/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java @@ -352,6 +352,12 @@ public class HandlerMethod extends AnnotatedMethod { return (this.bean.hashCode() * 31 + super.hashCode()); } + /** + * Returns a concise description of this {@code HandlerMethod}, which is used + * in log and error messages. + *

The description should typically include the method signature of the + * underlying handler method for clarity and debugging purposes. + */ @Override public String toString() { return this.description;