fix null point error in SpringBootDocBuildTemplate

This commit is contained in:
yusun4 2020-11-22 22:18:37 +08:00
parent 23b84f1cf8
commit 6329f64482
1 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,9 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
//handle request mapping
RequestMapping requestMapping = new SpringMVCRequestMappingHandler()
.handle(projectBuilder.getServerUrl(), baseUrl, method, constantsMap);
if (Objects.isNull(requestMapping)) {
continue;
}
//handle headers
List<ApiReqHeader> apiReqHeaders = new SpringMVCRequestHeaderHandler().handle(method);