diff --git a/doc/docs/_sidebar.md b/doc/docs/_sidebar.md index 9624ea4e..79d8dbd6 100644 --- a/doc/docs/_sidebar.md +++ b/doc/docs/_sidebar.md @@ -1,27 +1,27 @@ -* [首页](/?t=1558495242072) +* [首页](/?t=1558576159211) * 开发文档 - * [快速体验](files/10010_快速体验.md?t=1558495242073) - * [项目接入到SOP](files/10011_项目接入到SOP.md?t=1558495242095) - * [新增接口](files/10020_新增接口.md?t=1558495242095) - * [业务参数校验](files/10030_业务参数校验.md?t=1558495242096) - * [错误处理](files/10040_错误处理.md?t=1558495242096) - * [编写文档](files/10041_编写文档.md?t=1558495242096) - * [接口交互详解](files/10050_接口交互详解.md?t=1558495242096) - * [easyopen支持](files/10070_easyopen支持.md?t=1558495242097) - * [使用签名校验工具](files/10080_使用签名校验工具.md?t=1558495242097) - * [ISV管理](files/10085_ISV管理.md?t=1558495242097) - * [路由授权](files/10090_路由授权.md?t=1558495242097) - * [接口限流](files/10092_接口限流.md?t=1558495242098) - * [SDK开发](files/10095_SDK开发.md?t=1558495242098) - * [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1558495242098) - * [应用授权](files/10097_应用授权.md?t=1558495242098) - * [更改数据节点名称](files/10099_更改数据节点名称.md?t=1558495242098) - * [对接前端](files/10100_对接前端.md?t=1558495242098) - * [自定义过滤器](files/10102_自定义过滤器.md?t=1558495242098) - * [文件上传](files/10104_文件上传.md?t=1558495242099) + * [快速体验](files/10010_快速体验.md?t=1558576159212) + * [项目接入到SOP](files/10011_项目接入到SOP.md?t=1558576159229) + * [新增接口](files/10020_新增接口.md?t=1558576159229) + * [业务参数校验](files/10030_业务参数校验.md?t=1558576159229) + * [错误处理](files/10040_错误处理.md?t=1558576159229) + * [编写文档](files/10041_编写文档.md?t=1558576159229) + * [接口交互详解](files/10050_接口交互详解.md?t=1558576159230) + * [easyopen支持](files/10070_easyopen支持.md?t=1558576159230) + * [使用签名校验工具](files/10080_使用签名校验工具.md?t=1558576159230) + * [ISV管理](files/10085_ISV管理.md?t=1558576159230) + * [路由授权](files/10090_路由授权.md?t=1558576159230) + * [接口限流](files/10092_接口限流.md?t=1558576159230) + * [SDK开发](files/10095_SDK开发.md?t=1558576159230) + * [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1558576159230) + * [应用授权](files/10097_应用授权.md?t=1558576159230) + * [更改数据节点名称](files/10099_更改数据节点名称.md?t=1558576159230) + * [对接前端](files/10100_对接前端.md?t=1558576159231) + * [自定义过滤器](files/10102_自定义过滤器.md?t=1558576159231) + * [文件上传](files/10104_文件上传.md?t=1558576159231) * 原理分析 - * [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1558495242099) - * [原理分析之路由存储](files/90011_原理分析之路由存储.md?t=1558495242099) - * [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1558495242099) - * [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1558495242099) - * [常见问题](files/90100_常见问题.md?t=1558495242099) + * [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1558576159231) + * [原理分析之路由存储](files/90011_原理分析之路由存储.md?t=1558576159231) + * [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1558576159231) + * [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1558576159231) + * [常见问题](files/90100_常见问题.md?t=1558576159231) diff --git a/doc/docs/files/90100_常见问题.md b/doc/docs/files/90100_常见问题.md index 8558e792..ae293ecd 100644 --- a/doc/docs/files/90100_常见问题.md +++ b/doc/docs/files/90100_常见问题.md @@ -1,6 +1,6 @@ # 常见问题 -- Socket error occurred: localhost/0:0:0:0:0:0:0:1:2181: Connection refused +## Socket error occurred: `localhost/0:0:0:0:0:0:0:1:2181`: Connection refused 检查本地zookeeper有没启动,如果zookeeper在其他机器上,修改application-dev.yml @@ -10,3 +10,22 @@ cloud: connect-string: ip:2181 ``` +## 如何关闭签名验证 + +- 针对某一个接口关闭签名验证 +`@ApiMapping(value = "alipay.story.get", ignoreValidate = true)` + +- 针对所有接口关闭签名验证 + +```java +@Configuration +public class ZuulConfig extends AlipayZuulConfiguration { + + static { + ... + ApiConfig.getInstance().setIgnoreValidate(true); + ... + } + +} +``` \ No newline at end of file