diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml index b46f615..d526a1a 100644 --- a/ruoyi-admin/src/main/resources/application-prod.yml +++ b/ruoyi-admin/src/main/resources/application-prod.yml @@ -7,11 +7,11 @@ spring: # 主库数据源 master: #url: jdbc:mysql://192.168.254.6:3306/work-portal?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - url: jdbc:mysql://192.168.254.85:3306/java_cti?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - #username: root - #password: fq3gG@Ep - username: ENC(qIDwFzwTd7W+6W3NTJsfsQ==) - password: ENC(FZcHuy+40+UzU3k6M+FnT87FLCzZKG9S) + url: jdbc:mysql://10.89.2.136:3306/java_cti?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + #username: java + #password: 123456 + username: ENC(4eX4Y7rYI4d35kWPfgFObw==) + password: ENC(nUzY8yy1XsZD5YC6L2y/sw==) # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java b/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java index bbda383..ad420c8 100644 --- a/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java +++ b/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java @@ -16,7 +16,7 @@ public class EncFactory { public static void main(String[] args) { String securityKey = "NBPLUS"; // 加密秘钥 - String data = "fq3gG@Ep"; // 需要加密的字符串 + String data = "123456"; // 需要加密的字符串 PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor(); SimpleStringPBEConfig config = new SimpleStringPBEConfig();