update 增加请求前缀

This commit is contained in:
疯狂的狮子li
2021-05-20 17:00:18 +08:00
parent 7076deb2b6
commit 3d25dfbebe
3 changed files with 8 additions and 1 deletions

View File

@ -51,7 +51,8 @@ public class SwaggerConfig {
.build()
/* 设置安全模式swagger可以设置访问token */
.securitySchemes(securitySchemes())
.securityContexts(securityContexts());
.securityContexts(securityContexts())
.pathMapping(swaggerProperties.getPathMapping());
}
/**

View File

@ -19,6 +19,10 @@ public class SwaggerProperties {
* 验证码类型
*/
private Boolean enabled;
/**
* 设置请求的统一前缀
*/
private String pathMapping;
/**
* 验证码类别
*/