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

AbstractHandlerMethodMapping adds type+method info to getMappingForMethod exceptions

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