update 增加请求前缀
This commit is contained in:
parent
39a0e05f87
commit
d0dbe49bfd
|
@ -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后台管理系统_接口文档'
|
||||||
# 描述
|
# 描述
|
||||||
|
|
|
@ -51,7 +51,8 @@ public class SwaggerConfig {
|
||||||
.build()
|
.build()
|
||||||
/* 设置安全模式,swagger可以设置访问token */
|
/* 设置安全模式,swagger可以设置访问token */
|
||||||
.securitySchemes(securitySchemes())
|
.securitySchemes(securitySchemes())
|
||||||
.securityContexts(securityContexts());
|
.securityContexts(securityContexts())
|
||||||
|
.pathMapping(swaggerProperties.getPathMapping());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,6 +19,10 @@ public class SwaggerProperties {
|
||||||
* 验证码类型
|
* 验证码类型
|
||||||
*/
|
*/
|
||||||
private Boolean enabled;
|
private Boolean enabled;
|
||||||
|
/**
|
||||||
|
* 设置请求的统一前缀
|
||||||
|
*/
|
||||||
|
private String pathMapping;
|
||||||
/**
|
/**
|
||||||
* 验证码类别
|
* 验证码类别
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue