diff --git a/src/main/java/com/msdw/tms/entity/UserInfoEntity.java b/src/main/java/com/msdw/tms/entity/UserInfoEntity.java index a0f2a63..095478d 100644 --- a/src/main/java/com/msdw/tms/entity/UserInfoEntity.java +++ b/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;