Commit 1585c4dd by 郑冰晶

优化异常告警

parent c4716526
......@@ -2,7 +2,7 @@ package com.secoo.mall.datasource.security.algorithm.property;
import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.ConfigService;
import com.google.common.base.CaseFormat;
import com.secoo.mall.common.constant.CharConstant;
import com.secoo.mall.common.util.colletion.CollectionUtil;
import com.secoo.mall.common.util.reflect.FieldUtil;
import com.secoo.mall.common.util.string.StringUtil;
......@@ -110,7 +110,7 @@ public class ApolloPropertyProviderAlgorithm implements PropertyProviderAlgorith
Object value = appConfig.getProperty(configPropertyFullPath, "");
//得到实际类的字段
String beanFieldName = CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL,fieldSection[3]);
String beanFieldName = StringUtil.toCamelCase(fieldSection[3], CharConstant.MINUS);
if (!fieldMap.containsKey(beanFieldName)) {
notSupportPropertySet.add(beanFieldName);
continue;
......@@ -175,7 +175,7 @@ public class ApolloPropertyProviderAlgorithm implements PropertyProviderAlgorith
// System.out.println(JSON.toJSONString(x.split("-",2)));
// String x = "spring.datasource.security.secooActivityDB.t_price_rule_task.creator.plainColumn";
// System.out.println(x.contains("spring.datasource.security\\."));
// System.out.println(StringUtil.capitalize("beanFieldName"));
// System.out.println(StringUtil.toCamelCase("bean-field-name", CharConstant.MINUS));
// System.out.println(CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL,"set-" + "encrypt-type"));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment