From eaa2da840e7e4e1b3a8c9508619d1887591ffa0a Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Mon, 13 Jan 2025 14:14:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/application-dev.yml | 6 +++--- ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application-dev.yml b/ruoyi-admin/src/main/resources/application-dev.yml index dd129f0..d1fa92b 100644 --- a/ruoyi-admin/src/main/resources/application-dev.yml +++ b/ruoyi-admin/src/main/resources/application-dev.yml @@ -8,11 +8,11 @@ spring: # 主库数据源 master: #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 #password: Qwer@1234 Qwer@1234 - username: ENC(6lCfD2O9U7Q/OtDbbDJcsQ==) - password: ENC(obJOAJ3L7nYrrefghR4FQ+2v/GpPLt+y) + username: ENC(vlLQ/7vZqa7K23narLorxQ==) + password: ENC(w0v9hEAUZY5ZxDzBMya2JQtoiELhls74) # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java b/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java index 518f418..e25c9a3 100644 --- a/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java +++ b/ruoyi-admin/src/test/java/com/ruoyi/EncFactory.java @@ -6,7 +6,7 @@ import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig; public class EncFactory { public static void main(String[] args) { String securityKey = "NBPLUS"; // 加密秘钥 - String data = "Qwer@1234"; // 需要加密的字符串 + String data = "Hello@1234"; // 需要加密的字符串 PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor(); SimpleStringPBEConfig config = new SimpleStringPBEConfig();