更新文档

1.x
tanghc 6 years ago
parent fcdaf248b8
commit ae76083184
  1. 39
      doc/docs/_sidebar.md
  2. 6
      doc/docs/files/90100_常见问题.md
  3. 5
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/manager/ServiceZookeeperApiMetaManager.java

@ -1,21 +1,22 @@
* [首页](/?t=1555378655647)
* [首页](/?t=1555755370647)
* 开发文档
* [快速体验](files/10010_快速体验.md?t=1555378655648)
* [项目接入到SOP](files/10011_项目接入到SOP.md?t=1555378655697)
* [新增接口](files/10020_新增接口.md?t=1555378655697)
* [业务参数校验](files/10030_业务参数校验.md?t=1555378655697)
* [错误处理](files/10040_错误处理.md?t=1555378655697)
* [编写文档](files/10041_编写文档.md?t=1555378655698)
* [接口交互详解](files/10050_接口交互详解.md?t=1555378655698)
* [easyopen支持](files/10070_easyopen支持.md?t=1555378655698)
* [使用签名校验工具](files/10080_使用签名校验工具.md?t=1555378655698)
* [ISV管理](files/10085_ISV管理.md?t=1555378655698)
* [路由授权](files/10090_路由授权.md?t=1555378655699)
* [接口限流](files/10092_接口限流.md?t=1555378655699)
* [SDK开发](files/10095_SDK开发.md?t=1555378655699)
* [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1555378655699)
* [快速体验](files/10010_快速体验.md?t=1555755370648)
* [项目接入到SOP](files/10011_项目接入到SOP.md?t=1555755370667)
* [新增接口](files/10020_新增接口.md?t=1555755370667)
* [业务参数校验](files/10030_业务参数校验.md?t=1555755370667)
* [错误处理](files/10040_错误处理.md?t=1555755370667)
* [编写文档](files/10041_编写文档.md?t=1555755370667)
* [接口交互详解](files/10050_接口交互详解.md?t=1555755370667)
* [easyopen支持](files/10070_easyopen支持.md?t=1555755370667)
* [使用签名校验工具](files/10080_使用签名校验工具.md?t=1555755370667)
* [ISV管理](files/10085_ISV管理.md?t=1555755370667)
* [路由授权](files/10090_路由授权.md?t=1555755370668)
* [接口限流](files/10092_接口限流.md?t=1555755370668)
* [SDK开发](files/10095_SDK开发.md?t=1555755370668)
* [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1555755370668)
* 原理分析
* [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1555378655699)
* [原理分析之路由存储](files/90011_原理分析之路由存储.md?t=1555378655699)
* [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1555378655700)
* [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1555378655700)
* [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1555755370668)
* [原理分析之路由存储](files/90011_原理分析之路由存储.md?t=1555755370668)
* [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1555755370668)
* [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1555755370668)
* [常见问题](files/90100_常见问题.md?t=1555755370668)

@ -0,0 +1,6 @@
# 常见问题
- 启动Zookeeper报错Will not attempt to authenticate using SASL
有可能是zookeeper.jar版本号跟你的zookeeper不一致造成的。我用的是3.4.12,去pom.xml改下版本号试试。
再不行,绑定下host,参考这这篇文章:https://www.cnblogs.com/yuanyifei1/p/8652042.html

@ -45,7 +45,6 @@ public class ServiceZookeeperApiMetaManager implements ApiMetaManager {
private static ServiceApiInfo.ApiMeta FIRST_API_META = new ServiceApiInfo.ApiMeta("_first.route_", "/", "v_000");
private final String routeRootPath = SOP_SERVICE_ROUTE_PATH;
private final String zookeeperServerAddr;
private Environment environment;
@ -59,10 +58,6 @@ public class ServiceZookeeperApiMetaManager implements ApiMetaManager {
if (StringUtils.isEmpty(serviceId)) {
throw new IllegalArgumentException("请在application.properties中指定spring.application.name属性");
}
zookeeperServerAddr = environment.getProperty("spring.cloud.zookeeper.connect-string");
if (StringUtils.isEmpty(zookeeperServerAddr)) {
throw new IllegalArgumentException("未指定spring.cloud.zookeeper.connect-string参数");
}
this.zookeeperTool = new ZookeeperTool(environment);
this.uploadServiceId(environment);

Loading…
Cancel
Save