AbstractHandlerMethodMapping adds type+method info to getMappingForMethod exceptions
Issue: SPR-14452
This commit is contained in:
parent
84afc601b8
commit
8ccd727c9a
|
@ -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 [" +
|
||||||
|
handlerType.getName() + "]: " + method, ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
|
|
Loading…
Reference in New Issue