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 82ca201 commit e417955Copy full SHA for e417955
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java
@@ -230,7 +230,13 @@ protected void detectHandlerMethods(final Object handler) {
230
new MethodIntrospector.MetadataLookup<T>() {
231
@Override
232
public T inspect(Method method) {
233
- return getMappingForMethod(method, userType);
+ try {
234
+ return getMappingForMethod(method, userType);
235
+ }
236
+ catch (Throwable ex) {
237
+ throw new IllegalStateException("Invalid mapping on handler class [" +
238
+ userType.getName() + "]: " + method, ex);
239
240
}
241
});
242
0 commit comments