pull/1/head
tanghc 5 years ago
parent 2698827ba0
commit 5c77e0030c
  1. 2
      sop-example/sop-springmvc/src/main/java/com/gitee/app/config/OpenServiceConfig.java

@ -50,7 +50,7 @@ public class OpenServiceConfig extends SpringMvcServiceConfiguration {
Instance instance = this.getInstance(serviceId, ip, port, contextPath); Instance instance = this.getInstance(serviceId, ip, port, contextPath);
namingService.registerInstance(serviceId, instance); namingService.registerInstance(serviceId, instance);
log.info("注册到nacos, serviceId:{}, ip:{}, port:{}", serviceId, ip, port); log.info("注册到nacos, serviceId: {}, ip: {}, port: {}, contextPath: {}", serviceId, ip, port, contextPath);
} catch (NacosException e) { } catch (NacosException e) {
log.error("注册nacos失败", e); log.error("注册nacos失败", e);
throw new RuntimeException("注册nacos失败", e); throw new RuntimeException("注册nacos失败", e);

Loading…
Cancel
Save