· 2020-06-27
完全按照你的配置和代码,报错了,提示如下:
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find java src paths: [G:javacodeideaWorkSpaceftassrcmainjava]
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: project type not set, try to figure out...
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: start find controllers in path : G:javacodeideaWorkSpaceftassrcmainjava\
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : GitLabController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : DashboardRecController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : DashboardTBController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : DivinationController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : Neo4jController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : TrialBalanceController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: start to parse controller file : GitLabController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: success to parse controller file : GitLabController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: start to parse controller file : DashboardRecController.java
Exception in thread "main" io.github.yedaxia.apidocs.exception.JavaFileNotFoundException: Cannot find java file , in java file : G:javacodeideaWorkSpaceftassrcmainjavacomxsyxftascontrollerDashboardRecController.java, className : ResponseEntity
at io.github.yedaxia.apidocs.ParseUtils.searchJavaFile(ParseUtils.java:52)
at io.github.yedaxia.apidocs.ParseUtils.parseClassNodeByType(ParseUtils.java:223)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.lambda$parseMethodDocs$7(AbsControllerParser.java:169)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.parseMethodDocs(AbsControllerParser.java:90)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.lambda$parse$0(AbsControllerParser.java:42)
at java.util.Optional.ifPresent(Optional.java:159)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.parse(AbsControllerParser.java:39)
at io.github.yedaxia.apidocs.doc.AbsDocGenerator.initControllerNodes(AbsDocGenerator.java:44)
at io.github.yedaxia.apidocs.doc.AbsDocGenerator.(AbsDocGenerator.java:27)
at io.github.yedaxia.apidocs.doc.HtmlDocGenerator.(HtmlDocGenerator.java:29)
at io.github.yedaxia.apidocs.Docs.buildHtmlDocs(Docs.java:30)
at com.xsyx.MyApi.main(MyApi.java:25)
Process finished with exit code 1
完全按照你的配置和代码,报错了,提示如下:
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find java src paths: [G:\java\code\ideaWorkSpace\ftas\src\main\java\]
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: project type not set, try to figure out...
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: start find controllers in path : G:\java\code\ideaWorkSpace\ftas\src\main\java\
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : GitLabController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : DashboardRecController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : DashboardTBController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : DivinationController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : Neo4jController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: find controller file : TrialBalanceController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: start to parse controller file : GitLabController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: success to parse controller file : GitLabController.java
六月 27, 2020 9:13:30 上午 io.github.yedaxia.apidocs.LogUtils info
信息: info: start to parse controller file : DashboardRecController.java
Exception in thread "main" io.github.yedaxia.apidocs.exception.JavaFileNotFoundException: Cannot find java file , in java file : G:\java\code\ideaWorkSpace\ftas\src\main\java\com\xsyx\ftas\controller\DashboardRecController.java, className : ResponseEntity
at io.github.yedaxia.apidocs.ParseUtils.searchJavaFile(ParseUtils.java:52)
at io.github.yedaxia.apidocs.ParseUtils.parseClassNodeByType(ParseUtils.java:223)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.lambda$parseMethodDocs$7(AbsControllerParser.java:169)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.parseMethodDocs(AbsControllerParser.java:90)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.lambda$parse$0(AbsControllerParser.java:42)
at java.util.Optional.ifPresent(Optional.java:159)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.parse(AbsControllerParser.java:39)
at io.github.yedaxia.apidocs.doc.AbsDocGenerator.initControllerNodes(AbsDocGenerator.java:44)
at io.github.yedaxia.apidocs.doc.AbsDocGenerator.(AbsDocGenerator.java:27)
at io.github.yedaxia.apidocs.doc.HtmlDocGenerator.(HtmlDocGenerator.java:29)
at io.github.yedaxia.apidocs.Docs.buildHtmlDocs(Docs.java:30)
at com.xsyx.MyApi.main(MyApi.java:25)
Process finished with exit code 1
赞
回复
取消
保存
0
这个类是spring框架中的啊import org.springframework.http.ResponseEntity;,为什么不能识别
/**
* 按日排列,每日一条最后的执行记录
* @return List
*
*/
@CrossOrigin
@GetMapping("/daily")
public ResponseEntity> findListDaily(){
List reconciliation = recService.findListDaily();
return ResponseEntity.ok(reconciliation);
}
你的框架代码,在这里报的错io.github.yedaxia.apidocs.ParseUtils.searchJavaFile(ParseUtils.java:52):
public static File searchJavaFile(File inJavaFile, String className) {
File file = null;
Iterator var3 = DocContext.getJavaSrcPaths().iterator();
while(var3.hasNext()) {
String javaSrcPath = (String)var3.next();
file = searchJavaFileInner(javaSrcPath, inJavaFile, className);
if (file != null) {
break;
}
}
if (file == null) {
throw new JavaFileNotFoundException("Cannot find java file , in java file : " + inJavaFile.getAbsolutePath() + ", className : " + className);
} else {
return file;
}
}
这个类是spring框架中的啊import org.springframework.http.ResponseEntity;,为什么不能识别
/**
* 按日排列,每日一条最后的执行记录
* @return List
*
*/
@CrossOrigin
@GetMapping("/daily")
public ResponseEntity> findListDaily(){
List reconciliation = recService.findListDaily();
return ResponseEntity.ok(reconciliation);
}
你的框架代码,在这里报的错io.github.yedaxia.apidocs.ParseUtils.searchJavaFile(ParseUtils.java:52):
public static File searchJavaFile(File inJavaFile, String className) {
File file = null;
Iterator var3 = DocContext.getJavaSrcPaths().iterator();
while(var3.hasNext()) {
String javaSrcPath = (String)var3.next();
file = searchJavaFileInner(javaSrcPath, inJavaFile, className);
if (file != null) {
break;
}
}
if (file == null) {
throw new JavaFileNotFoundException("Cannot find java file , in java file : " + inJavaFile.getAbsolutePath() + ", className : " + className);
} else {
return file;
}
}
—
沧海一粟
· 2020-06-27