chenjiahe
2022-05-26 f3cd78cd0355259a7f08cab33df69e0ac3a6850d
提交 | 用户 | age
c64e12 1 package com.hx.mybatis.aes.springbean;
C 2
3 import org.springframework.beans.factory.annotation.Value;
4 import org.springframework.stereotype.Component;
5
6 /**
7  * 通用常量集中营
8  * @author CJH
9  */
10 @Component
11 public class ConstantBean {
12
13     /**获取AES秘钥的配置(从什么包获取到)*/
f36821 14     @Value("${mysql.hxe.aes.find.packs:}")
c64e12 15     private String packPath;
C 16     /**固定AES的秘钥*/
f36821 17     @Value("${mysql.hxe.aes.fixd.key:}")
c64e12 18     private String fixedAesKey;
b1097d 19     /**数据库初始化加密字段版本号*/
f36821 20     @Value("${mysql.hxe.aes.init.version:}")
b1097d 21     private String initVersion;
c64e12 22
C 23     public String getPackPath() {
24         return packPath;
25     }
26
27     public void setPackPath(String packPath) {
28         this.packPath = packPath;
29     }
30
31     public String getFixedAesKey() {
32         return fixedAesKey;
33     }
34
35     public void setFixedAesKey(String fixedAesKey) {
36         this.fixedAesKey = fixedAesKey;
37     }
b1097d 38
C 39     public String getInitVersion() {
40         return initVersion;
41     }
42
43     public void setInitVersion(String initVersion) {
44         this.initVersion = initVersion;
45     }
c64e12 46 }