类工具类 类名: ClassUtil getMethodParameter /** * 获取方法参数信息 * * @param constructor 构造器 * @param parameterIndex 参数序号 * @return {MethodParameter} */ClassUtil.getMethodParameter(Constructor<?> constructor, int parameterIndex); getMethodParameter /** * 获取方法参数信息 * * @param method 方法 * @param parameterIndex 参数序号 * @return {MethodParameter} */ClassUtil.getMethodParameter(Method method, int parameterIndex); getAnnotation /** * 获取Annotation * * @param method Method * @param annotationType 注解类 * @param <A> 泛型标记 * @return {Annotation} */ClassUtil.getAnnotation(Method method, Class<A> annotationType); getAnnotation /** * 获取Annotation * * @param handlerMethod HandlerMethod * @param annotationType 注解类 * @param <A> 泛型标记 * @return {Annotation} */ClassUtil.getAnnotation(HandlerMethod handlerMethod, Class<A> annotationType); isAnnotated /** * 判断是否有注解 Annotation * * @param method Method * @param annotationType 注解类 * @param <A> 泛型标记 * @return {boolean} */ClassUtil.isAnnotated(Method method, Class<A> annotationType); 微信 vs 公众号 精彩内容每日推荐!!!