阅读背景:

springboot使用注解做接口非空判断_白马湖小龙王的博客_springboot参数非空校验注解

来源:互联网 

1定义一个在方法上作用的注解

@Retention(RetentionPolicy.RUNTIME) // 表示注解在运行时依然存在
@Target(ElementType.METHOD)  
@Documented
public @interface noNull {
	public String str() default "";
}

@Retention(RetentionPol



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: