This commit is contained in:
lijiaqi 2023-07-24 14:27:21 +08:00
parent 5bf5459590
commit 321dfdcd39
3 changed files with 3 additions and 3 deletions

View File

@ -4,5 +4,5 @@ _ip=119.3.109.134
cd ../
mvn clean package
scp target/build/*.jar root@${_ip}:${_pwd}
scp target/build/lib/*.* root@${_ip}:${_pwd}/lib
#scp target/build/lib/*.* root@${_ip}:${_pwd}/lib
ssh root@${_ip} "cd ${_pwd}; sh ./start.sh"

View File

@ -12,7 +12,7 @@ import java.util.regex.Pattern;
public class PasswordUtil {
public static Boolean valid(String password) {
String regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,24}$";
String regexp = "^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,24}$";
return Pattern.matches(regexp, password);
}

View File

@ -18,7 +18,7 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://127.0.0.1:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: root
password: Wang09211108
druid:
# 下面为连接池的补充设置,应用到上面所有数据源中
# 初始化大小,最小,最大