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 dd40146d66e4..9ee65fcd6a3a 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 int hashCode() { 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;