Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
1585c4dd
Commit
1585c4dd
authored
Aug 27, 2021
by
郑冰晶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化异常告警
parent
c4716526
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ApolloPropertyProviderAlgorithm.java
matrix-datasource/matrix-datasource-security/matrix-datasource-security-druid/src/main/java/com/secoo/mall/datasource/security/algorithm/property/ApolloPropertyProviderAlgorithm.java
+3
-3
No files found.
matrix-datasource/matrix-datasource-security/matrix-datasource-security-druid/src/main/java/com/secoo/mall/datasource/security/algorithm/property/ApolloPropertyProviderAlgorithm.java
View file @
1585c4dd
...
...
@@ -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.CaseForma
t
;
import
com.
secoo.mall.common.constant.CharConstan
t
;
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"));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment