1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

fix condition with

This commit is contained in:
flystar32 2019-03-12 15:59:45 +08:00
parent 482e4a101b
commit 6e846f662f

View File

@ -59,7 +59,7 @@ public class NacosRegistration implements Registration, ServiceInstance {
Environment env = context.getEnvironment(); Environment env = context.getEnvironment();
String endpointBasePath = env.getProperty(MANAGEMENT_ENDPOINT_BASE_PATH); String endpointBasePath = env.getProperty(MANAGEMENT_ENDPOINT_BASE_PATH);
if (StringUtils.isEmpty(endpointBasePath)) { if (!StringUtils.isEmpty(endpointBasePath)) {
metadata.put(MANAGEMENT_ENDPOINT_BASE_PATH, endpointBasePath); metadata.put(MANAGEMENT_ENDPOINT_BASE_PATH, endpointBasePath);
} }