From 0344dc66783353faff118a0ea91f7d2aa07bbd4a Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期六, 02 四月 2022 18:47:44 +0800
Subject: [PATCH] 优化加密初始化方法

---
 src/main/java/com/hx/util/rsa/RSAUtil.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/hx/util/rsa/RSAUtil.java b/src/main/java/com/hx/util/rsa/RSAUtil.java
index 45349a3..f874515 100644
--- a/src/main/java/com/hx/util/rsa/RSAUtil.java
+++ b/src/main/java/com/hx/util/rsa/RSAUtil.java
@@ -64,7 +64,8 @@
             byte[] bytes = cipher.doFinal(content.getBytes());
             return byte2Base64(bytes);
         } catch (Exception e) {
-            logger.error("鍏挜鍔犲瘑澶辫触{}", e);
+            e.printStackTrace();
+            //logger.error("鍏挜鍔犲瘑澶辫触{}", e);
         }
         return null;
     }
@@ -77,7 +78,7 @@
             byte[] bytes = cipher.doFinal(base642Byte(content));
             return new String(bytes);
         } catch (Exception e) {
-            logger.error("绉侀挜瑙e瘑澶辫触{}", e);
+            //logger.error("绉侀挜瑙e瘑澶辫触{}", e);
         }
         return null;
     }

--
Gitblit v1.8.0