提交 f7e01fc2 authored 作者:  狄熙卜's avatar 狄熙卜

配置读取错误修改

上级 9de026dc
...@@ -22,8 +22,7 @@ public class DbEncryptXmlConfig { ...@@ -22,8 +22,7 @@ public class DbEncryptXmlConfig {
public Resource getConfigUrl() { public Resource getConfigUrl() {
return configUrl; return configUrl;
} }
//entity基础包,在此配置下的包,才被识别为实体
private List<String> entityPackages;
//全局加解密字段 //全局加解密字段
private List<String> globalEnableFields ; private List<String> globalEnableFields ;
//map中全局加解密字段的例外(在例外中不加解密) //map中全局加解密字段的例外(在例外中不加解密)
...@@ -74,13 +73,6 @@ public class DbEncryptXmlConfig { ...@@ -74,13 +73,6 @@ public class DbEncryptXmlConfig {
} }
public List<String> getEntityPackages(){
if(entityPackages == null) {
entityPackages = getArrFields("EntityPackages");
}
return entityPackages;
}
public List<String> getGlobalEnableFields(){ public List<String> getGlobalEnableFields(){
if(globalEnableFields == null) { if(globalEnableFields == null) {
globalEnableFields = getArrFields("GlobalEnableFields"); globalEnableFields = getArrFields("GlobalEnableFields");
...@@ -90,7 +82,7 @@ public class DbEncryptXmlConfig { ...@@ -90,7 +82,7 @@ public class DbEncryptXmlConfig {
public List<Map> getGlobalDisableMapFields() { public List<Map> getGlobalDisableMapFields() {
if(globalDisableMapFields == null){ if(globalDisableMapFields == null){
List<String> globalDisableEntityFieldList = getArrFields("globalDisableMapFields"); List<String> globalDisableEntityFieldList = getArrFields("GlobalDisableMapFields");
if(CollectionUtils.isNotEmpty(globalDisableEntityFieldList)){ if(CollectionUtils.isNotEmpty(globalDisableEntityFieldList)){
globalDisableMapFields = new ArrayList<Map>(); globalDisableMapFields = new ArrayList<Map>();
for (String s : globalDisableEntityFieldList) { for (String s : globalDisableEntityFieldList) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论