MangoDB 中文 UI界面代码-Java语言版-立哥开发

//Copy right 2020 by Jacky Zong.
package com.cybermkd.mongo.constraints;

/**
 * 创建人:Jacky
 * 创建日期: 2020/10/08
 * 文件描述:
 */

import com.cybermkd.mongo.validation.ChineseValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({METHOD, FIELD, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = ChineseValidator.class)
@Documented
public @interface Chinese {

    String message() default "{com.cybermkd.constraints.Chinese.message}";
    Class[] groups() default {};
    Class[] payload() default {};
    boolean value();
}

你可能感兴趣的:(MongoDB,实例,aop,jvm,xml,class,java)