Fix github #80.

This commit is contained in:
oppofind 2021-01-07 23:33:17 +08:00
parent 2165220b4c
commit 41cd80fc45
2 changed files with 6 additions and 5 deletions

View File

@ -169,7 +169,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
}
DocletTag pageTag = method.getTagByName(DocTags.PAGE);
if (Objects.nonNull(pageTag)) {
String pageUrl = "/" + projectBuilder.getServerUrl() + "/" + pageTag.getValue();
String pageUrl = projectBuilder.getServerUrl() + "/" + pageTag.getValue();
apiMethodDoc.setPage(UrlUtil.simplifyUrl(pageUrl));
}
DocletTag docletTag = method.getTagByName(DocTags.GROUP);

View File

@ -49,13 +49,14 @@ public class PathUtil {
/**
* to postman path
*
* @param path path
* @return String
*/
public static String toPostmanPath(String path){
if(StringUtil.isNotEmpty(path)){
path = path.replace("{",":");
path = path.replace("}","");
public static String toPostmanPath(String path) {
if (StringUtil.isNotEmpty(path)) {
path = path.replace("{", ":");
path = path.replace("}", "");
return path;
}
return null;