@Component public class ApiParamCheck extends Object
| 构造器和说明 |
|---|
ApiParamCheck() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkParam(org.aspectj.lang.JoinPoint jp,
ApiParam apiParam) |
void |
checkParam(org.aspectj.lang.JoinPoint jp,
ApiParam[] params) |
void |
checkParam(org.aspectj.lang.JoinPoint jp,
ApiParams apiParams)
全局校验
|
void |
checkParam(Map<String,Object> params,
String[] names,
ApiParam[] apiParams) |
static Field |
getField(Class<?> cla,
String key) |
static boolean |
isEmpty(String str)
判断字符串是否为空
|
public void checkParam(org.aspectj.lang.JoinPoint jp,
ApiParam apiParam)
throws Exception
Exceptionpublic void checkParam(org.aspectj.lang.JoinPoint jp,
ApiParams apiParams)
throws Exception
jp - 参数对象apiParams - 注解Exception - 异常信息public void checkParam(org.aspectj.lang.JoinPoint jp,
ApiParam[] params)
throws Exception
Exceptionpublic void checkParam(Map<String,Object> params, String[] names, ApiParam[] apiParams) throws Exception, Exception
Exceptionpublic static boolean isEmpty(String str)
str - 字符串Copyright © 2020. All rights reserved.