We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84afc60 commit 8ccd727Copy full SHA for 8ccd727
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java
@@ -231,7 +231,13 @@ protected void detectHandlerMethods(final Object handler) {
231
new MethodIntrospector.MetadataLookup<T>() {
232
@Override
233
public T inspect(Method method) {
234
- return getMappingForMethod(method, userType);
+ try {
235
+ return getMappingForMethod(method, userType);
236
+ }
237
+ catch (Throwable ex) {
238
+ throw new IllegalStateException("Invalid mapping on handler class [" +
239
+ handlerType.getName() + "]: " + method, ex);
240
241
}
242
});
243
0 commit comments