首页>代码>springboot自定义注解实现重置密码验证功能>/field-match/src/main/java/com/memorynotfound/spring/security/web/dto/PasswordResetDto.java
package com.memorynotfound.spring.security.web.dto;

import com.memorynotfound.spring.security.constraint.FieldMatch;
import org.hibernate.validator.constraints.NotEmpty;

@FieldMatch(first = "password", second = "confirmPassword", message = "The password fields must match")
public class PasswordResetDto {

    @NotEmpty
    private String password;

    @NotEmpty
    private String confirmPassword;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

}
最近下载更多
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日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友