swagger2 Could not resolve pointer: /definitions

错误信息:

Errors
Resolver error at paths././query.post.parameters.20.schema.$ref
Could not resolve reference because of: Could not resolve pointer: /definitions/BeanName does not exist in document

这是因为在swagger2中注解参数的时候没有写包名。

@ApiImplicitParam(name = "userVo", value = "用户对象", dataType = "UserVo")

改为:

@ApiImplicitParam(name = "userVo", value = "用户对象", dataType = "com.xian.project1.pkg.UserVo")
posted @ 2019-10-18 09:29  火光闪耀  阅读(10213)  评论(0编辑  收藏  举报