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:null}") private String packPath; /**固定AES的秘钥*/ @Value("${mysql.hxe.aes.fixd.key:null}") private String fixedAesKey; 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; } }