mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 增加请求前缀
This commit is contained in:
		@@ -187,6 +187,8 @@ mybatis-plus:
 | 
			
		||||
swagger:
 | 
			
		||||
  # 是否开启swagger
 | 
			
		||||
  enabled: true
 | 
			
		||||
  # 请求前缀
 | 
			
		||||
  pathMapping: /dev-api
 | 
			
		||||
  # 标题
 | 
			
		||||
  title: '标题:RuoYi-Vue-Plus后台管理系统_接口文档'
 | 
			
		||||
  # 描述
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,8 @@ public class SwaggerConfig {
 | 
			
		||||
			.build()
 | 
			
		||||
			/* 设置安全模式,swagger可以设置访问token */
 | 
			
		||||
			.securitySchemes(securitySchemes())
 | 
			
		||||
			.securityContexts(securityContexts());
 | 
			
		||||
			.securityContexts(securityContexts())
 | 
			
		||||
			.pathMapping(swaggerProperties.getPathMapping());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,10 @@ public class SwaggerProperties {
 | 
			
		||||
     * 验证码类型
 | 
			
		||||
     */
 | 
			
		||||
    private Boolean enabled;
 | 
			
		||||
	/**
 | 
			
		||||
	 * 设置请求的统一前缀
 | 
			
		||||
	 */
 | 
			
		||||
	private String pathMapping;
 | 
			
		||||
    /**
 | 
			
		||||
     * 验证码类别
 | 
			
		||||
     */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user