mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.0.2
This commit is contained in:
@@ -27,7 +27,7 @@ public class OpenServletContextListener implements ServletContextListener {
|
||||
|
||||
NamingService namingService = webApplicationContext.getBean(NamingService.class);
|
||||
try {
|
||||
namingService.deregisterInstance(serviceId, ip, Integer.valueOf(port));
|
||||
namingService.deregisterInstance(serviceId, ip, Integer.parseInt(port));
|
||||
} catch (NacosException e) {
|
||||
log.error("注销nacos服务失败,serviceId:{}, ip:{}, port:{}", serviceId, ip, port);
|
||||
}
|
||||
|
@@ -2,5 +2,4 @@ server.port=2222
|
||||
spring.application.name=story-service
|
||||
# 注册中心
|
||||
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
|
||||
eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/
|
||||
|
||||
|
Reference in New Issue
Block a user