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")


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM