Class<?>[] paramTypes = m.getParameterTypes();
Annotation[][] paramAnns = m.getParameterAnnotations();
loadParam(paramTypes, paramAnns, paramNames, paramClasses);
// Action类实例属性变量
ReflectUtil ru = null;
try {
ru = new ReflectUtil(cls);
} catch (Error e) {
return null;
} catch (Exception e) {
return null;
}
Field[] fields = ru.getFields();
loadParam(fields, paramNames, paramClasses);
if (paramClasses != null && paramClasses.size() > 0)
actionName = urlParamToRegex(actionName, paramNames, paramClasses);