提交 | 用户 | 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秘钥的配置(从什么包获取到)*/ |
|
14 |
@Value("${mysql.hxe.aes.find.packs:null}") |
|
15 |
private String packPath; |
|
16 |
/**固定AES的秘钥*/ |
|
17 |
@Value("${mysql.hxe.aes.fixd.key:null}") |
|
18 |
private String fixedAesKey; |
|
19 |
|
|
20 |
public String getPackPath() { |
|
21 |
return packPath; |
|
22 |
} |
|
23 |
|
|
24 |
public void setPackPath(String packPath) { |
|
25 |
this.packPath = packPath; |
|
26 |
} |
|
27 |
|
|
28 |
public String getFixedAesKey() { |
|
29 |
return fixedAesKey; |
|
30 |
} |
|
31 |
|
|
32 |
public void setFixedAesKey(String fixedAesKey) { |
|
33 |
this.fixedAesKey = fixedAesKey; |
|
34 |
} |
|
35 |
} |