文章分类 -  swagger

第四章 springboot + swagger
摘要:注:本文参考自 http://www.jianshu.com/p/0465a2b837d2 swagger用于定义API文档。 好处: 前后端分离开发 API文档非常明确 测试的时候不需要再使用URL输入浏览器的方式来访问Controller 传统的输入URL的测试方式对于post请求的传参比较麻烦 阅读全文

posted @ 2017-08-10 19:49 快乐编程呀 阅读(97) 评论(0) 推荐(0)

swagger常用注解说明
摘要:常用到的注解有: Api ApiModel ApiModelProperty ApiOperation ApiParam ApiResponse ApiResponses ResponseHeader api标记 Api 标记可以标记一个Controller类做为swagger 文档资源,使用方式: 阅读全文

posted @ 2017-08-08 20:18 快乐编程呀 阅读(89) 评论(0) 推荐(0)

导航