首页>代码>springboot自定义注解实现重置密码验证功能>/field-match/src/main/java/com/memorynotfound/spring/security/constraint/FieldMatch.java
package com.memorynotfound.spring.security.constraint; import javax.validation.Payload; import javax.validation.Constraint; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Target({TYPE, ANNOTATION_TYPE}) @Retention(RUNTIME) @Constraint(validatedBy = FieldMatchValidator.class) @Documented public @interface FieldMatch { String message() default "{constraints.field-match}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; String first(); String second(); @Target({TYPE, ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @interface List { FieldMatch[] value(); } }
最近下载更多
annazhang LV29
2023年4月8日
whfuai LV14
2022年9月17日
苏屿999 LV9
2021年10月21日
弹指又十年 LV8
2021年10月17日
Curryhuang LV3
2021年6月22日
最近浏览更多
微信网友_6754091131867136
2023年11月27日
暂无贡献等级
chenlie LV2
2023年11月21日
漫步的海星 LV4
2023年9月26日
dapeng0011 LV13
2023年6月19日
annazhang LV29
2023年4月8日
zxc131313 LV12
2023年2月2日
ROCK森 LV12
2022年11月7日
秋枫花落叶 LV2
2022年11月3日
wuying8208 LV15
2022年10月31日
whfuai LV14
2022年9月17日