使用Swagger2构建RESTful API文档遇到的坑

@ApiImplicitParam(name = "id", value = "用户ID",required = true, dataType = "Long")
这个里面少了一个参数:paramType="path",否则无法从路径中获得id值。

猜你喜欢

转载自blog.csdn.net/qq_36076256/article/details/79532612