feat:配置修改

law-v2025-01
wangxy 3 months ago
parent e5df845ccc
commit eaa2da840e

@ -8,11 +8,11 @@ spring:
# 主库数据源 # 主库数据源
master: master:
#url: jdbc:postgresql://192.168.254.176:5432/work-portal?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 #url: jdbc:postgresql://192.168.254.176:5432/work-portal?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:highgo://127.0.0.1:5866/law?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:highgo://61.178.84.89:5866/law?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
#username: postgres highgo #username: postgres highgo
#password: Qwer@1234 Qwer@1234 #password: Qwer@1234 Qwer@1234
username: ENC(6lCfD2O9U7Q/OtDbbDJcsQ==) username: ENC(vlLQ/7vZqa7K23narLorxQ==)
password: ENC(obJOAJ3L7nYrrefghR4FQ+2v/GpPLt+y) password: ENC(w0v9hEAUZY5ZxDzBMya2JQtoiELhls74)
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

@ -6,7 +6,7 @@ import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
public class EncFactory { public class EncFactory {
public static void main(String[] args) { public static void main(String[] args) {
String securityKey = "NBPLUS"; // 加密秘钥 String securityKey = "NBPLUS"; // 加密秘钥
String data = "Qwer@1234"; // 需要加密的字符串 String data = "Hello@1234"; // 需要加密的字符串
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor(); PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
SimpleStringPBEConfig config = new SimpleStringPBEConfig(); SimpleStringPBEConfig config = new SimpleStringPBEConfig();

Loading…
Cancel
Save