swagger扫描路径
parent
3ffdf683ae
commit
9efc422b8a
|
@ -28,7 +28,7 @@ public class Knife4jConfig implements WebMvcConfigurer {
|
||||||
.apiInfo(apiInfo())
|
.apiInfo(apiInfo())
|
||||||
.groupName("默认分组")
|
.groupName("默认分组")
|
||||||
.select()
|
.select()
|
||||||
.apis(RequestHandlerSelectors.basePackage("org.hz.controller")) // 修改为你的controller包路径
|
.apis(RequestHandlerSelectors.basePackage("com.unisinsight.project.controller")) // 修改为你的controller包路径
|
||||||
.paths(PathSelectors.any())
|
.paths(PathSelectors.any())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue