提交 | 用户 | age
|
826b66
|
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秘钥的配置(从什么包获取到)*/ |
|
14 |
@Value("${mysql.hxe.aes.find.packs:}") |
|
15 |
private String packPath; |
|
16 |
/**固定AES的秘钥*/ |
|
17 |
@Value("${mysql.hxe.aes.fixd.key:}") |
|
18 |
private String fixedAesKey; |
|
19 |
/**数据库初始化加密字段版本号*/ |
|
20 |
@Value("${mysql.hxe.aes.init.version:}") |
|
21 |
private String initVersion; |
|
22 |
|
|
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 |
} |
|
38 |
|
|
39 |
public String getInitVersion() { |
|
40 |
return initVersion; |
|
41 |
} |
|
42 |
|
|
43 |
public void setInitVersion(String initVersion) { |
|
44 |
this.initVersion = initVersion; |
|
45 |
} |
|
46 |
} |