Score
0
Watch 124 Star 365 Fork 102

叶大侠 / JApiDocsJavaApache-2.0

包含MutipartFile 类型参数的接口生成不了文档。

Open
Linzol  Opened this issue

########################## 代码部分 #########################################
/**
* 保存激活码
* @chancelai surveyId 问卷id
* @chancelai file 激活码文件
* @HTTP4O4
*/
@RequestMapping(value = "/saveCode",method = RequestMethod.POST)
public Result saveCode(@RequestParam("surveyId") @@大学 Integer surveyId,
@RequestParam("file") MultipartFile file) {
return surveyPrizeService.saveCode(surveyId,file);
}
########################## 报错信息 #########################################
Exception in thread "main" io.github.yedaxia.apidocs.exception.JavaFileNotFoundException: Cannot find java file , in java file : D:\workspace\produce\surveyadmin-server\src\main\java\com\dw\sdo\survey\controller\SurveyPrizeController.java, className : MultipartFile
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.SpringControllerParser.lambda$afterHandleMethod$7(SpringControllerParser.java:144)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at com.github.javaparser.ast.NodeList.forEach(NodeList.java:267)
at io.github.yedaxia.apidocs.parser.SpringControllerParser.afterHandleMethod(SpringControllerParser.java:101)
at io.github.yedaxia.apidocs.parser.AbsControllerParser.lambda$parseMethodDocs$7(AbsControllerParser.java:158)
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:1374)
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.dw.sdo.survey.ApiWordGenerate.apidoc(ApiWordGenerate.java:45)
at com.dw.sdo.survey.ApiWordGenerate.main(ApiWordGenerate.java:24)

total 1 participants

Comments (0)

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority