提交 e4179553 编写于 作者: J Juergen Hoeller

AbstractHandlerMethodMapping adds type+method info to getMappingForMethod exceptions

Issue: SPR-14452
(cherry picked from commit f0a826ec)
上级 82ca2011
......@@ -230,7 +230,13 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
new MethodIntrospector.MetadataLookup<T>() {
@Override
public T inspect(Method method) {
return getMappingForMethod(method, userType);
try {
return getMappingForMethod(method, userType);
}
catch (Throwable ex) {
throw new IllegalStateException("Invalid mapping on handler class [" +
userType.getName() + "]: " + method, ex);
}
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册