密码格式
^(?![A-Za-z]+$)(?![A-Z\d]+$)(?![A-Z\W]+$)(?![a-z\d]+$)(?![a-z\W]+$)(?![\d\W]+$)\S{8,20}$
//密码格式,需包含大写字母、小写字母、数字、特殊字符@#$%^&*()_+|~-=\\`{}[]:\";'<>?,./)
@Pattern(regexp = "^(?![A-Za-z]+$)(?![A-Z\\d]+$)(?![A-Z\\W]+$)(?![a-z\\d]+$)(?![a-z\\W]+$)(?![\\d\\W]+$)\\S{8,20}$", message = "密码格式不正确\n需包含大写字母、小写字母、数字、特殊字符【特殊字符 @#$%^&*()_+|~-=\\`{}[]:\";'<>?,./)】,需符合四项中的三项")
private String password;