Commit a817503b authored by trumansdo's avatar trumansdo
Browse files

自定义注解RequestBodyPlus 将json类型请求可以用json path的形式注入单个参数

parent b973b56c
package com.ibeetl.admin.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestBodyPlus {
/*写入一个json path。默认直接将json转换为被注解的参数的类型对象*/
String value() default "";
boolean required() default true;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment