账号校验

hehai
shijie 4 years ago
parent f01677dfd7
commit d3d59e8e45
  1. 3
      src/main/java/com/msdw/tms/entity/UserInfoEntity.java

@ -17,7 +17,8 @@ public class UserInfoEntity {
//用户姓名
private String userName;
//用户账号
@Pattern(regexp = "/^[1-9]([0-9]{1,5})?$/", message = "账号只能为数字!")
//@Pattern(regexp = "/^[1-9]([0-9]{1,5})?$/", message = "账号只能为数字!")
@Pattern(regexp = "^[0-9a-zA-Z]*$",message = "账号只能为数字或字母!")
private String account;
//用户密码
private String password;

Loading…
Cancel
Save