package com.jroo.base.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target( {ElementType.FIELD,ElementType.METHOD})
public @interface Validation {

	/**
	 *是否可以为null
	 * @return
	 */
	boolean notNull() default true;
	/**
	 * 默认值
	 * @return
	 */
	String defaultValue() default "";
	
	/**
	 * 是否是email
	 * @return
	 */
	boolean email() default false;
	
	/**
	 * email格式
	 * @return
	 */
	String emailPattern() default "/^***@*******$/";
	
}
最近下载更多
xyxyxy_59  LV1 2022年12月18日
东方明亮  LV5 2022年12月4日
cx123123  LV7 2022年5月16日
liuzejuncn  LV6 2022年3月13日
wanglinddad  LV51 2022年3月9日
winnie_cc  LV4 2022年2月25日
微信网友_5845420553359360  LV4 2022年2月23日
Patrick1988  LV4 2022年1月12日
123千瓦洒洒  LV11 2021年12月8日
cp19791101  LV12 2021年11月18日
最近浏览更多
一行代码bug多  LV1 6小时前
liyc_ayer  LV1 6月1日
zhaoka 5月30日
暂无贡献等级
lilonghui  LV3 5月17日
哇哈哈AD钙_S  LV6 5月16日
想飞的大肥猪  LV4 5月9日
3263394665  LV2 4月18日
jierffff  LV2 4月12日
hihhhh  LV6 4月6日
Korol27  LV3 4月3日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友