commit
147fd67c96
@ -1,35 +1,35 @@ |
|||||||
* [首页](/?t=1573711393653) |
* [首页](/?t=1574408534264) |
||||||
* 开发文档 |
* 开发文档 |
||||||
* [快速体验](files/10010_快速体验.md?t=1573711393655) |
* [快速体验](files/10010_快速体验.md?t=1574408534265) |
||||||
* [项目接入到SOP](files/10011_项目接入到SOP.md?t=1573711393680) |
* [项目接入到SOP](files/10011_项目接入到SOP.md?t=1574408534281) |
||||||
* [新增接口](files/10020_新增接口.md?t=1573711393680) |
* [新增接口](files/10020_新增接口.md?t=1574408534281) |
||||||
* [开发流程](files/10021_开发流程.md?t=1573711393680) |
* [开发流程](files/10021_开发流程.md?t=1574408534281) |
||||||
* [业务参数校验](files/10030_业务参数校验.md?t=1573711393680) |
* [业务参数校验](files/10030_业务参数校验.md?t=1574408534281) |
||||||
* [错误处理](files/10040_错误处理.md?t=1573711393680) |
* [错误处理](files/10040_错误处理.md?t=1574408534281) |
||||||
* [编写文档](files/10041_编写文档.md?t=1573711393680) |
* [编写文档](files/10041_编写文档.md?t=1574408534282) |
||||||
* [接口交互详解](files/10050_接口交互详解.md?t=1573711393680) |
* [接口交互详解](files/10050_接口交互详解.md?t=1574408534282) |
||||||
* [easyopen支持](files/10070_easyopen支持.md?t=1573711393681) |
* [easyopen支持](files/10070_easyopen支持.md?t=1574408534282) |
||||||
* [使用签名校验工具](files/10080_使用签名校验工具.md?t=1573711393681) |
* [使用签名校验工具](files/10080_使用签名校验工具.md?t=1574408534282) |
||||||
* [ISV管理](files/10085_ISV管理.md?t=1573711393681) |
* [ISV管理](files/10085_ISV管理.md?t=1574408534282) |
||||||
* [自定义返回结果](files/10087_自定义返回结果.md?t=1573711393681) |
* [自定义返回结果](files/10087_自定义返回结果.md?t=1574408534282) |
||||||
* [自定义过滤器](files/10088_自定义过滤器.md?t=1573711393681) |
* [自定义过滤器](files/10088_自定义过滤器.md?t=1574408534282) |
||||||
* [自定义校验token](files/10089_自定义校验token.md?t=1573711393681) |
* [自定义校验token](files/10089_自定义校验token.md?t=1574408534282) |
||||||
* [路由授权](files/10090_路由授权.md?t=1573711393681) |
* [路由授权](files/10090_路由授权.md?t=1574408534282) |
||||||
* [接口限流](files/10092_接口限流.md?t=1573711393682) |
* [接口限流](files/10092_接口限流.md?t=1574408534282) |
||||||
* [监控日志](files/10093_监控日志.md?t=1573711393682) |
* [监控日志](files/10093_监控日志.md?t=1574408534282) |
||||||
* [SDK开发](files/10095_SDK开发.md?t=1573711393682) |
* [SDK开发](files/10095_SDK开发.md?t=1574408534283) |
||||||
* [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1573711393682) |
* [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1574408534283) |
||||||
* [应用授权](files/10097_应用授权.md?t=1573711393682) |
* [应用授权](files/10097_应用授权.md?t=1574408534283) |
||||||
* [提供restful接口](files/10100_提供restful接口.md?t=1573711393682) |
* [提供restful接口](files/10100_提供restful接口.md?t=1574408534283) |
||||||
* [文件上传](files/10104_文件上传.md?t=1573711393682) |
* [文件上传](files/10104_文件上传.md?t=1574408534283) |
||||||
* [配置Sleuth链路追踪](files/10109_配置Sleuth链路追踪.md?t=1573711393683) |
* [配置Sleuth链路追踪](files/10109_配置Sleuth链路追踪.md?t=1574408534283) |
||||||
* [预发布灰度发布](files/10110_预发布灰度发布.md?t=1573711393683) |
* [预发布灰度发布](files/10110_预发布灰度发布.md?t=1574408534283) |
||||||
* [动态修改请求参数](files/10111_动态修改请求参数.md?t=1573711393683) |
* [动态修改请求参数](files/10111_动态修改请求参数.md?t=1574408534283) |
||||||
* [使用eureka](files/10112_使用eureka.md?t=1573711393683) |
* [使用eureka](files/10112_使用eureka.md?t=1574408534283) |
||||||
* [扩展其它注册中心](files/10113_扩展其它注册中心.md?t=1573711393683) |
* [扩展其它注册中心](files/10113_扩展其它注册中心.md?t=1574408534283) |
||||||
* 原理分析 |
* 原理分析 |
||||||
* [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1573711393683) |
* [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1574408534283) |
||||||
* [原理分析之如何存储路由](files/90011_原理分析之如何存储路由.md?t=1573711393683) |
* [原理分析之如何存储路由](files/90011_原理分析之如何存储路由.md?t=1574408534283) |
||||||
* [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1573711393683) |
* [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1574408534283) |
||||||
* [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1573711393684) |
* [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1574408534284) |
||||||
* [常见问题](files/90100_常见问题.md?t=1573711393684) |
* [常见问题](files/90100_常见问题.md?t=1574408534284) |
||||||
|
@ -0,0 +1,22 @@ |
|||||||
|
package com.gitee.sop.gatewaycommon; |
||||||
|
|
||||||
|
import junit.framework.TestCase; |
||||||
|
import org.apache.commons.lang.StringUtils; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author tanghc |
||||||
|
*/ |
||||||
|
public class ExcludeTest extends TestCase { |
||||||
|
public void testRegex() { |
||||||
|
String serviceId = "com.aaa.bbb.story-service"; |
||||||
|
String sopServiceExcludeRegex = "com\\..*;story\\-.*"; |
||||||
|
if (StringUtils.isNotBlank(sopServiceExcludeRegex)) { |
||||||
|
String[] regexArr = sopServiceExcludeRegex.split(";"); |
||||||
|
for (String regex : regexArr) { |
||||||
|
if (serviceId.matches(regex)) { |
||||||
|
System.out.println("111"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,21 @@ |
|||||||
|
package com.gitee.app.config; |
||||||
|
|
||||||
|
import com.gitee.sop.servercommon.swagger.SwaggerSupport; |
||||||
|
import springfox.documentation.swagger2.annotations.EnableSwagger2; |
||||||
|
|
||||||
|
/** |
||||||
|
* 开启文档,本地微服务文档地址:http://localhost:2222/doc.html
|
||||||
|
* http://ip:port/v2/api-docs
|
||||||
|
*/ |
||||||
|
@EnableSwagger2 |
||||||
|
public class Swagger2 extends SwaggerSupport { |
||||||
|
@Override |
||||||
|
protected String getDocTitle() { |
||||||
|
return "MVC_API"; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
protected boolean swaggerAccessProtected() { |
||||||
|
return false; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue