Commit 322bde59 authored by daniel's avatar daniel

fix(mainsite): 修复SpringCommonFilter解析空RequestMapping value数组越界

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 1cbdf063
......@@ -175,7 +175,8 @@ public class SpringCommonFilter implements Filter {
}
RequestMapping methodRequestMapping =
AnnotatedElementUtils.findMergedAnnotation(handlerMethod.getMethod(), RequestMapping.class);
String methodMapping = methodRequestMapping.value()[0];
String methodMapping = (methodRequestMapping != null && methodRequestMapping.value().length > 0)
? methodRequestMapping.value()[0] : "";
/* if (typeMapping.length() > 1 && typeMapping.endsWith(ROOT_PATH)) {
typeMapping = typeMapping.substring(0, typeMapping.length() - 1);
}*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment