swagger扫描路径

master
cyt 2025-08-06 09:26:28 +08:00
parent 3ffdf683ae
commit 9efc422b8a
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class Knife4jConfig implements WebMvcConfigurer {
.apiInfo(apiInfo())
.groupName("默认分组")
.select()
.apis(RequestHandlerSelectors.basePackage("org.hz.controller")) // 修改为你的controller包路径
.apis(RequestHandlerSelectors.basePackage("com.unisinsight.project.controller")) // 修改为你的controller包路径
.paths(PathSelectors.any())
.build();
}