全面使用nacos,舍弃zookeeper

This commit is contained in:
tanghc
2019-08-21 16:04:32 +08:00
parent 90d6823693
commit 6e2a0e6c13
36 changed files with 179 additions and 658 deletions

View File

@@ -1,16 +0,0 @@
package com.gitee.sop.websiteserver.bean;
/**
* @author tanghc
*/
public class WebsiteConstants {
/**
* zookeeper存放接口路由信息的根目录
*/
public static final String SOP_SERVICE_ROUTE_PATH = "/com.gitee.sop.route";
/**
* 服务临时节点
*/
public static final String SOP_SERVICE_TEMP_PATH = "/com.gitee.sop.service.tmp";
}

View File

@@ -2,11 +2,8 @@ server.port=8083
spring.application.name=website-server
# ------- 需要改的配置 -------
# zookeeper地址
zookeeper.url=localhost:2181
# nacos地址
nacos.url=127.0.0.1:8848
# ------- 需要改的配置end -------
# nacos cloud配置