Fix ServiceNameCacheGuavaService split error
This commit is contained in:
parent
ec08a29164
commit
825d5e69bc
|
|
@ -74,7 +74,7 @@ public class ServiceNameCacheGuavaService implements ServiceNameCacheService {
|
|||
|
||||
public String getSplitServiceName(String serviceName) {
|
||||
if (StringUtils.isNotEmpty(serviceName)) {
|
||||
String[] serviceNames = serviceName.split(Const.ID_SPLIT);
|
||||
String[] serviceNames = serviceName.split(Const.ID_SPLIT, 2);
|
||||
if (serviceNames.length == 2) {
|
||||
return serviceNames[1];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue