com.github.fashionbrot.validated.annotation.AssertTrue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mars-validated Show documentation
Show all versions of mars-validated Show documentation
mars-validated 参数验证 https://github.com/fashionbrot/mars-validated
package com.github.fashionbrot.validated.annotation;
import java.lang.annotation.*;
/**
* 验证是否为 true
* boolean
* String
*/
@Documented
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Mars
public @interface AssertTrue {
String msg() default "com.spv.valid.AssertTrue.msg";
}