HandlerMapping.class, true, false);for(HandlerMapping handlerMapping : allRequestMappings.values())
{//本项目只需要RequestMappingHandlerMapping中的URL映射
if (handlerMapping instanceofRequestMappingHandlerMapping)
{
RequestMappingHandlerMapping requestMappingHandlerMapping=(RequestMappingHandlerMapping) handlerMapping;
Map handlerMethods =requestMappingHandlerMapping.getHandlerMethods();for (Map.EntryrequestMappingInfoHandlerMethodEntry : handlerMethods.entrySet())
{
RequestMappingInfo requestMappingInfo=requestMappingInfoHandlerMethodEntry.getKey();
HandlerMethod mappingInfoValue=requestMappingInfoHandlerMethodEntry.getValue();
RequestMethodsRequestCondition methodCondition=requestMappingInfo.getMethodsCondition();
String requestType=SetUtils.first(methodCondition.getMethods()).name();
PatternsRequestCondition patternsCondition=requestMappingInfo.getPatternsCondition();
String requestUrl=SetUtils.first(patternsCondition.getPatterns());
String controllerName=mappingInfoValue.getBeanType().toString();
String requestMethodName=mappingInfoValue.getMethod().getName();
Class>[] methodParamTypes =mappingInfoValue.getMethod().getParameterTypes();
RequestToMethodItem item= newRequestToMethodItem(requestUrl, requestType, controllerName, requestMethodName,