与spring boot的Swagger集成

与spring boot的Swagger集成,swagger,swagger-ui,springfox,Swagger,Swagger Ui,Springfox,对于其中一个rest调用/rest/task/addAttachmentToNote,即POST请求,我将获得显示在Swagger UI中的选项和补丁。为什么? 显示您的控制器。@jmattheis My controller是,@ApiOperation(value=“Add Attachment to Note”,response=AttachmentToNoteBean.class,responseContainer=“List”,httpMethod=“POST”)@RequestMap

对于其中一个rest调用
/rest/task/addAttachmentToNote
,即
POST
请求,我将获得显示在Swagger UI中的
选项和
补丁。为什么?

显示您的控制器。@jmattheis My controller是,
@ApiOperation(value=“Add Attachment to Note”,response=AttachmentToNoteBean.class,responseContainer=“List”,httpMethod=“POST”)@RequestMapping(value=“/addAttachmentToNote”,method=RequestMethod.POST)public ResponseEntity addAttachmentToNote(@RequestBody final Map noteAttachment,final HttpServletRequest请求){