diff --git a/changelog.md b/changelog.md
index 8059c5d1..d9c5b5a3 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,9 @@
# changelog
+## 2.0.0
+
+- 全面使用nacos,舍弃zookeeper(1.x版本见1.x分支)
+
## 1.15.2
- 优化SpringCloudGateway上传文件功能
diff --git a/sop-1.10.0.sql b/sop-1.10.0.sql
deleted file mode 100644
index 8a525835..00000000
--- a/sop-1.10.0.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-DROP TABLE IF EXISTS `config_common`;
-
-CREATE TABLE `config_common` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `config_group` varchar(64) NOT NULL DEFAULT '' COMMENT '配置分组',
- `config_key` varchar(64) NOT NULL DEFAULT '' COMMENT '配置key',
- `content` varchar(128) NOT NULL DEFAULT '' COMMENT '内容',
- `remark` varchar(128) DEFAULT NULL COMMENT '备注',
- `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_groupkey` (`config_group`,`config_key`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通用配置表';
diff --git a/sop-1.11.0.sql b/sop-1.11.0.sql
deleted file mode 100644
index 1ac84122..00000000
--- a/sop-1.11.0.sql
+++ /dev/null
@@ -1,20 +0,0 @@
-DROP TABLE IF EXISTS `isv_keys`;
-
-CREATE TABLE `isv_keys` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `app_key` varchar(128) NOT NULL DEFAULT '应用id(交给开发者)',
- `sign_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1:RSA2,2:MD5',
- `secret` varchar(200) NOT NULL DEFAULT '' COMMENT 'sign_type=2时使用',
- `key_format` tinyint(4) NOT NULL DEFAULT '1' COMMENT '秘钥格式,1:PKCS8(JAVA适用),2:PKCS1(非JAVA适用)',
- `public_key_isv` text NOT NULL COMMENT '开发者生成的公钥',
- `private_key_isv` text NOT NULL COMMENT '开发者生成的私钥(交给开发者)',
- `public_key_platform` text NOT NULL COMMENT '平台生成的公钥(交给开发者)',
- `private_key_platform` text NOT NULL COMMENT '平台生成的私钥',
- `gmt_create` datetime DEFAULT CURRENT_TIMESTAMP,
- `gmt_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_appkey` (`app_key`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ISV秘钥';
-
-INSERT INTO `sop`.`isv_keys` (`app_key`,`sign_type`, `secret`,`key_format`, `public_key_isv`, `private_key_isv`, `public_key_platform`, `private_key_platform`)
-select app_key, sign_type, secret, 1, pub_key,pri_key,'','' from isv_info;
\ No newline at end of file
diff --git a/sop-1.12.4.sql b/sop-1.12.4.sql
deleted file mode 100644
index f0ece71b..00000000
--- a/sop-1.12.4.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE `sop`.`isv_info` ADD COLUMN `remark` VARCHAR(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `sign_type`;
-
diff --git a/sop-1.13.0.sql b/sop-1.13.0.sql
deleted file mode 100644
index b578db58..00000000
--- a/sop-1.13.0.sql
+++ /dev/null
@@ -1,11 +0,0 @@
-use sop;
-
-CREATE TABLE `config_ip_blacklist` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `ip` varchar(64) NOT NULL DEFAULT '' COMMENT 'ip',
- `remark` varchar(128) DEFAULT NULL COMMENT '备注',
- `gmt_create` datetime DEFAULT CURRENT_TIMESTAMP,
- `gmt_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_ip` (`ip`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='IP黑名单';
\ No newline at end of file
diff --git a/sop-1.14.0.sql b/sop-1.14.0.sql
deleted file mode 100644
index c3bcff6f..00000000
--- a/sop-1.14.0.sql
+++ /dev/null
@@ -1,25 +0,0 @@
-use sop;
-
-CREATE TABLE `config_gray` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `service_id` varchar(64) NOT NULL DEFAULT '',
- `user_key_content` text COMMENT '用户key,多个用引文逗号隔开',
- `name_version_content` text COMMENT '需要灰度的接口,goods.get1.0=1.2,多个用英文逗号隔开',
- `gmt_create` datetime DEFAULT CURRENT_TIMESTAMP,
- `gmt_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_serviceid` (`service_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='服务灰度配置';
-
-
-CREATE TABLE `config_gray_instance` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `instance_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'instance_id',
- `service_id` varchar(64) NOT NULL DEFAULT '' COMMENT 'service_id',
- `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:禁用,1:启用',
- `gmt_create` datetime DEFAULT CURRENT_TIMESTAMP,
- `gmt_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_instanceid` (`instance_id`) USING BTREE,
- KEY `idx_serviceid` (`service_id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='开启灰度服务器实例';
\ No newline at end of file
diff --git a/sop-1.5.0.sql b/sop-1.5.0.sql
deleted file mode 100644
index 1128a898..00000000
--- a/sop-1.5.0.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-ALTER TABLE `sop`.`isv_info` ADD COLUMN `sign_type` TINYINT NOT NULL DEFAULT 1 COMMENT '签名类型,1:RSA2,2:MD5' AFTER `status`;
-
-update isv_info set sign_type=2 where secret <> '';
\ No newline at end of file
diff --git a/sop-1.6.0.sql b/sop-1.6.0.sql
deleted file mode 100644
index e5ea8b4a..00000000
--- a/sop-1.6.0.sql
+++ /dev/null
@@ -1,16 +0,0 @@
-DROP TABLE IF EXISTS `user_info`;
-
-CREATE TABLE `user_info` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `username` varchar(64) NOT NULL DEFAULT '' COMMENT '用户名',
- `password` varchar(128) NOT NULL DEFAULT '' COMMENT '密码',
- `nickname` varchar(64) NOT NULL DEFAULT '' COMMENT '昵称',
- `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- KEY `idx_unamepwd` (`username`,`password`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户信息表';
-
-
-INSERT INTO `user_info` ( `username`, `password`, `nickname`, `gmt_create`, `gmt_modified`) VALUES
- ('zhangsan','123456','张三','2019-04-27 08:32:57','2019-04-27 08:32:57');
diff --git a/sop-1.9.0.sql b/sop-1.9.0.sql
deleted file mode 100644
index 820c668f..00000000
--- a/sop-1.9.0.sql
+++ /dev/null
@@ -1,32 +0,0 @@
-
-DROP TABLE IF EXISTS `config_limit`;
-
-
-CREATE TABLE `config_limit` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `route_id` varchar(128) DEFAULT NULL COMMENT '路由id',
- `app_key` varchar(128) DEFAULT NULL,
- `limit_ip` varchar(300) DEFAULT NULL COMMENT '限流ip,多个用英文逗号隔开',
- `service_id` varchar(64) NOT NULL DEFAULT '' COMMENT '服务id',
- `limit_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '限流策略,1:漏桶策略,2:令牌桶策略',
- `exec_count_per_second` int(11) DEFAULT NULL COMMENT '每秒可处理请求数',
- `limit_code` varchar(64) DEFAULT NULL COMMENT '返回的错误码',
- `limit_msg` varchar(100) DEFAULT NULL COMMENT '返回的错误信息',
- `token_bucket_count` int(11) DEFAULT NULL COMMENT '令牌桶容量',
- `limit_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '限流开启状态,1:开启,0关闭',
- `order_index` int(11) NOT NULL DEFAULT '0' COMMENT '顺序,值小的优先执行',
- `remark` varchar(128) DEFAULT NULL COMMENT '备注',
- `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='限流配置';
-
-INSERT INTO `config_limit` (`id`, `route_id`, `app_key`, `limit_ip`, `service_id`, `limit_type`, `exec_count_per_second`, `limit_code`, `limit_msg`, `token_bucket_count`, `limit_status`, `order_index`, `remark`, `gmt_create`, `gmt_modified`) VALUES
- (1,'alipay.story.get1.0','','192.168.1.1,172.2.2.3','story-service',2,5,'','',6,1,3,NULL,'2019-05-17 19:21:35','2019-05-21 09:12:15'),
- (2,'alipay.story.get1.0','2019032617262200001','','story-service',1,5,'service-budy','服务器忙',5,1,0,NULL,'2019-05-17 19:39:30','2019-05-21 15:36:52'),
- (3,'alipay.story.find1.0','20190331562013861008375808','','story-service',1,3,'service-busy','服务器忙',5,1,1,NULL,'2019-05-17 20:20:32','2019-05-20 17:40:17'),
- (4,'alipay.story.get1.2','','','story-service',2,5,'','',3,1,1,NULL,'2019-05-20 16:27:21','2019-05-21 15:53:10'),
- (5,'','20190401562373796095328256','','story-service',1,5,'service-busy','服务器忙',5,1,0,'这个appKey调用很频繁,重点照顾','2019-05-21 15:48:08','2019-05-21 18:45:32'),
- (6,'','','10.1.30.54','story-service',1,5,'service-busy','服务器忙',5,1,0,'这个ip在攻击我们','2019-05-21 15:55:33','2019-05-21 18:17:29'),
- (7,'story.get1.1','','10.1.30.54','story-service',1,5,'service-busy','服务器忙',5,1,0,NULL,'2019-05-21 16:30:48','2019-05-21 16:30:48'),
- (8,'','20190513577548661718777857','10.1.30.54','story-service',1,5,'service-busy','服务器忙',5,1,0,NULL,'2019-05-21 17:10:45','2019-05-21 17:10:52');
\ No newline at end of file
diff --git a/sop-admin/sop-admin-server/pom.xml b/sop-admin/sop-admin-server/pom.xml
index 5559ef42..c71269bc 100644
--- a/sop-admin/sop-admin-server/pom.xml
+++ b/sop-admin/sop-admin-server/pom.xml
@@ -39,7 +39,7 @@
com.gitee.sop
sop-registry-api
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
diff --git a/sop-common/pom.xml b/sop-common/pom.xml
index 86889370..4668f704 100644
--- a/sop-common/pom.xml
+++ b/sop-common/pom.xml
@@ -5,7 +5,7 @@
4.0.0
com.gitee.sop
sop-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
pom
diff --git a/sop-common/sop-gateway-common/pom.xml b/sop-common/sop-gateway-common/pom.xml
index 1c0f6d3c..b3170a7c 100644
--- a/sop-common/sop-gateway-common/pom.xml
+++ b/sop-common/sop-gateway-common/pom.xml
@@ -5,11 +5,11 @@
com.gitee.sop
sop-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
../pom.xml
sop-gateway-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
jar
sop-gateway-common
diff --git a/sop-common/sop-registry-api/pom.xml b/sop-common/sop-registry-api/pom.xml
index 086f59ce..f4b66578 100644
--- a/sop-common/sop-registry-api/pom.xml
+++ b/sop-common/sop-registry-api/pom.xml
@@ -5,7 +5,7 @@
4.0.0
com.gitee.sop
sop-registry-api
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
UTF-8
diff --git a/sop-common/sop-service-common/pom.xml b/sop-common/sop-service-common/pom.xml
index 5fab3da9..217bf3d2 100644
--- a/sop-common/sop-service-common/pom.xml
+++ b/sop-common/sop-service-common/pom.xml
@@ -6,11 +6,11 @@
com.gitee.sop
sop-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
../pom.xml
sop-service-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
jar
sop-service-common
diff --git a/sop-example/sop-auth/pom.xml b/sop-example/sop-auth/pom.xml
index 50ccf8c2..082c5269 100644
--- a/sop-example/sop-auth/pom.xml
+++ b/sop-example/sop-auth/pom.xml
@@ -26,7 +26,7 @@
com.gitee.sop
sop-service-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
org.springframework.cloud
diff --git a/sop-example/sop-book/sop-book-web/pom.xml b/sop-example/sop-book/sop-book-web/pom.xml
index e17aef98..bc38e1d1 100644
--- a/sop-example/sop-book/sop-book-web/pom.xml
+++ b/sop-example/sop-book/sop-book-web/pom.xml
@@ -24,7 +24,7 @@
com.gitee.sop
sop-service-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
com.gitee.sop
diff --git a/sop-example/sop-easyopen/pom.xml b/sop-example/sop-easyopen/pom.xml
index 225a61ca..8796568e 100644
--- a/sop-example/sop-easyopen/pom.xml
+++ b/sop-example/sop-easyopen/pom.xml
@@ -29,7 +29,7 @@
com.gitee.sop
sop-service-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
diff --git a/sop-example/sop-story/sop-story-web/pom.xml b/sop-example/sop-story/sop-story-web/pom.xml
index b9bf7682..c6d5365f 100644
--- a/sop-example/sop-story/sop-story-web/pom.xml
+++ b/sop-example/sop-story/sop-story-web/pom.xml
@@ -24,7 +24,7 @@
com.gitee.sop
sop-service-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT
com.gitee.sop
diff --git a/sop-gateway/pom.xml b/sop-gateway/pom.xml
index 273161b7..6baab2fe 100644
--- a/sop-gateway/pom.xml
+++ b/sop-gateway/pom.xml
@@ -23,7 +23,7 @@
com.gitee.sop
sop-gateway-common
- 1.15.2-SNAPSHOT
+ 2.0.0-SNAPSHOT