Commit c79079f1 authored by 雍欢's avatar 雍欢

UaspRequestMappingHandlerMapping兼容spring mvc;

parent 8a4983e2
......@@ -24,9 +24,12 @@ public class UaspRequestMappingHandlerMapping extends RequestMappingHandlerMappi
@Override
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) {
RequestMappingInfo info = super.getMappingForMethod(method, handlerType);
if (info != null) {
return info;
RequestMappingInfo info = null;
if (AnnotationUtils.findAnnotation(handlerType, ControllerMapping.class) == null) {
info = super.getMappingForMethod(method, handlerType);
if (info != null) {
return info;
}
}
RequestMapping methodAnnotation = AnnotationUtils.findAnnotation(method, RequestMapping.class);
if (methodAnnotation != null) {
......
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