解决读取maat2Valve时 | 作为分隔符使用spilt分隔错误的问题
This commit is contained in:
@@ -125,7 +125,7 @@ public class ServiceAndRDBIndexReal {
|
|||||||
String [] fields = regionAndFields[1].split("&");
|
String [] fields = regionAndFields[1].split("&");
|
||||||
//同一service有不同的域类型,多个之间用“|”分隔
|
//同一service有不同的域类型,多个之间用“|”分隔
|
||||||
if (regionAndFields[0].contains("|")) {
|
if (regionAndFields[0].contains("|")) {
|
||||||
String [] regionTypeAry = regionAndFields[0].split("|");
|
String [] regionTypeAry = regionAndFields[0].split("\\|");
|
||||||
for (String regionType : regionTypeAry) {
|
for (String regionType : regionTypeAry) {
|
||||||
fieldMap.put(regionType, fields);
|
fieldMap.put(regionType, fields);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user