swagger 测试方法
This commit is contained in:
@ -35,6 +35,7 @@ public class ResourcesConfig extends WebMvcConfigurerAdapter
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry)
|
||||
{
|
||||
/** 头像上传路径 */
|
||||
registry.addResourceHandler("/profile/**").addResourceLocations("file:" + RuoYiConfig.getProfile());
|
||||
|
||||
/** swagger配置 */
|
||||
|
@ -36,7 +36,7 @@ public class SwaggerConfig
|
||||
.apiInfo(apiInfo())
|
||||
.select()
|
||||
// 指定当前包路径
|
||||
.apis(RequestHandlerSelectors.basePackage("com.ruoyi.project.system.post.controller"))
|
||||
.apis(RequestHandlerSelectors.basePackage("com.ruoyi.project.tool.swagger"))
|
||||
// 扫描所有 .apis(RequestHandlerSelectors.any())
|
||||
.paths(PathSelectors.any())
|
||||
.build();
|
||||
|
Reference in New Issue
Block a user