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 5c3c0f7 commit f0a826eCopy full SHA for f0a826e
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
+ userType.getName() + "]: " + method, ex);
240
241
}
242
});
243
0 commit comments