<com.alibaba.fastjson.JSONException: syntax error, pos 383, line 12, column 64{
"@type":"com.alipoo.zcacdd.config.impl.ZcacheConfiguration",
"cacheGroupMap":{"@type":"java.util.HashMap",
"GZ00":"kbttttestcenterTairCacheGZ00:r10w10,kbttttestcenterTairCacheGZ00D:r00w00"
},
"cacheName":"kbttttestcenterTairCache",
"dbmode":"dev",
"elastic":false,
"legacyZone":"GZ00",
"logicalCacheSettingList":[
{
"@type":"com.alipoo.zcacdd.config.impl.LogicalTairSetting",
"nameSpace":45,
"physicalTairSetting":{
"configServerList":[
"tair.stable.alipay.net:1498",
"tair2.stable.alipay.net:1498"
],
"groupName":"pubmemdb",
"maxThreadCount":100,
"tairName":"pubmemdbLegacy",
"timeout":200
},
"tairName":"kbttttestcenterTairCache"
},
{
"@type":"com.alipoo.zcacdd.config.impl.LogicalTairSetting",
"nameSpace":45,
"physicalTairSetting":{
"configServerList":[
"tair-1-64.stable.alipay.net:5198",
"tair-2-64.stable.alipay.net:5198"
],
"groupName":"pubmemdb",
"maxThreadCount":100,
"tairName":"pubmemdbZtg",
"timeout":200
},
"tairName":"kbttttestcenterTairCache"
}
],
"zoneMetaMap":{"@type":"java.util.HashMap",
"GZ00":{"@type":"java.util.HashMap",
"zoneCluster":"NORMAL"
}
}
}
1条答案
按热度按时间gmxoilav1#
cacheConfiguration configuration = JSON.parseObject(cfgContent, ZcacheConfiguration.class)