@Target(value={METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented public @interface ArgAutoOperate
Declaration requires automatic processing of method input parameters, for example:
@ArgAutoOperate({
@AutoOperate(value = "list", type = A.class),
@AutoOperate(value = "b", type = B.class)
})
public void doSomething(List list, B b) {
// do something
}
or:
@ArgAutoOperate
public void doSomething(
@AutoOperate(value = "list", type = A.class) List list,
@AutoOperate(value = "b", type = B.class) B b) {
// do something
}
NOTE:The annotation configuration on the parameter takes precedence over the annotation configuration on the method.
AutoOperate,
cn.crane4j.core.support.aop.MethodArgumentAutoOperateSupport| 限定符和类型 | 可选元素和说明 |
|---|---|
AutoOperate[] |
value
Operation configuration of parameters.
|
public abstract AutoOperate[] value
Copyright © 2024. All rights reserved.