tianwu.sun пре 8 месеци
родитељ
комит
b1a44ba956

+ 1 - 1
src/main/java/com/bootdo/common/utils/AesUtil.java

@@ -87,7 +87,7 @@ public final class AesUtil {
             SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
             Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
             cipher.init(Cipher.DECRYPT_MODE, skeySpec, new IvParameterSpec(iv.getBytes(UTF8)));
-            byte[] encrypted1 = Base64.getDecoder().decode(content);
+            byte[] encrypted1 = Base64.getMimeDecoder().decode(content);
             byte[] original = cipher.doFinal(encrypted1);
             return new String(original);
         } catch (Exception ex) {

+ 3 - 3
src/main/resources/application-prod.yml

@@ -21,7 +21,7 @@ spring:
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
     driverClassName: com.mysql.jdbc.Driver
-    url: jdbc:mysql://172.18.105.10:3306/cic_data?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
+    url: jdbc:mysql://172.18.105.12:3306/cic_data?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
     username: root
     password: Admin@!#%2024
     initialSize: 1
@@ -54,8 +54,8 @@ spring:
       login-username: admin
       login-password: admin
   redis:
-    cluster:
-      nodes: 172.18.105.10:7001,172.18.105.10:7002,172.18.105.10:7003,172.18.105.11:7004,172.18.105.11:7005,172.18.105.11:7006
+    host: 172.18.105.10
+    port: 7001
     password: YXSA@2024
     # 连接超时时间(毫秒)
     timeout: 10000