Tips

Mask phone number
phone.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2");
152****4799

idCard. replaceAll("(\\d{4})\\d{10}(\\w{4})","$1*****$2");
4304*****7733

$1, $2, … ...represents the matching content in the first, second, ... brackets in the regular expression

 

The password needs to enter characters + numbers (special symbols can be entered)
^(?![0-9]+$)(?![a-zA-Z]+$)\S{6,16}$


Add a unique constraint to the already built table
ALTER TABLE uc_user_policy ADD unique(user_id)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324850012&siteId=291194637