【发布时间】:2018-11-15 02:02:56
【问题描述】:
我在 2.9.2 版上使用 swagger-springfox,遇到了多个嵌套对象显示不完整的问题。
我有一个名为AddEntityCaseReq 的类和下面的结构。当我访问swagger-ui.html 时,Properties 中没有任何内容。
我在每个班级都标记了@ApiModel 和@ApiModelProperties。有什么遗漏吗?
这是类结构
AddEntityCaseReq
├── id
└── List<UploadDocuments> uploadDocuments;
└── Properties
├── id
└── name
这是控制器代码
@ResponseBody
@RequestMapping(value = "/addEntityCase", method = RequestMethod.POST)
@ApiOperation(value = "add entity case", notes = "add entity case")
@ApiImplicitParam(name = "addEntityCaseReq", value = "reuqest",
required = true, dataType = "AddEntityCaseReq")
public CommonResp<Boolean> addEntityCase(@RequestBody AddEntityCaseReq addEntityCaseReq) {
return addEntityCase.execute(addEntityCaseReq);
}
在这里大摇大摆的模型细节
【问题讨论】:
标签: java spring-boot swagger springfox