Commit c79079f1 authored by 雍欢's avatar 雍欢

UaspRequestMappingHandlerMapping兼容spring mvc;

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