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