update 增加请求前缀

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

View File

@ -187,6 +187,8 @@ mybatis-plus:
swagger: swagger:
# 是否开启swagger # 是否开启swagger
enabled: true enabled: true
# 请求前缀
pathMapping: /dev-api
# 标题 # 标题
title: '标题RuoYi-Vue-Plus后台管理系统_接口文档' title: '标题RuoYi-Vue-Plus后台管理系统_接口文档'
# 描述 # 描述

View File

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

View File

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