解决读取maat2Valve时 | 作为分隔符使用spilt分隔错误的问题

This commit is contained in:
RenKaiGe-Office
2018-07-09 15:27:09 +08:00
parent 5e9966c3b3
commit d9f9f8eb9d

View File

@@ -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);
} }