|
|
@ -27,7 +27,7 @@ public class OpenServletContextListener implements ServletContextListener { |
|
|
|
|
|
|
|
|
|
|
|
NamingService namingService = webApplicationContext.getBean(NamingService.class); |
|
|
|
NamingService namingService = webApplicationContext.getBean(NamingService.class); |
|
|
|
try { |
|
|
|
try { |
|
|
|
namingService.deregisterInstance(serviceId, ip, Integer.valueOf(port)); |
|
|
|
namingService.deregisterInstance(serviceId, ip, Integer.parseInt(port)); |
|
|
|
} catch (NacosException e) { |
|
|
|
} catch (NacosException e) { |
|
|
|
log.error("注销nacos服务失败,serviceId:{}, ip:{}, port:{}", serviceId, ip, port); |
|
|
|
log.error("注销nacos服务失败,serviceId:{}, ip:{}, port:{}", serviceId, ip, port); |
|
|
|
} |
|
|
|
} |
|
|
|