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/mybatis/aes/springbean/ConstantBean.java | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hx/mybatis/aes/springbean/ConstantBean.java b/src/main/java/com/hx/mybatis/aes/springbean/ConstantBean.java index d64a839..2cdc32d 100644 --- a/src/main/java/com/hx/mybatis/aes/springbean/ConstantBean.java +++ b/src/main/java/com/hx/mybatis/aes/springbean/ConstantBean.java @@ -11,11 +11,14 @@ public class ConstantBean { /**鑾峰彇AES绉橀挜鐨勯厤缃紙浠庝粈涔堝寘鑾峰彇鍒帮級*/ - @Value("${mysql.hxe.aes.find.packs:null}") + @Value("${mysql.hxe.aes.find.packs:}") private String packPath; /**鍥哄畾AES鐨勭閽�*/ - @Value("${mysql.hxe.aes.fixd.key:null}") + @Value("${mysql.hxe.aes.fixd.key:}") private String fixedAesKey; + /**鏁版嵁搴撳垵濮嬪寲鍔犲瘑瀛楁鐗堟湰鍙�*/ + @Value("${mysql.hxe.aes.init.version:}") + private String initVersion; public String getPackPath() { return packPath; @@ -32,4 +35,12 @@ public void setFixedAesKey(String fixedAesKey) { this.fixedAesKey = fixedAesKey; } + + public String getInitVersion() { + return initVersion; + } + + public void setInitVersion(String initVersion) { + this.initVersion = initVersion; + } } -- Gitblit v1.8.0