P1-11:集成swagger并使用

直接参考博文:

https://my.oschina.net/dlam/blog/808315

常用注解说明:

https://www.jianshu.com/p/12f4394462d5

RequestMethod中使用的六种请求方法详解:

https://www.cnblogs.com/wei-hj/p/7859707.html

实际使用方法:

controller类上加 api 

controller类内方法上加 ApiOperation 

controller类内方法上 @RequestMapping 内部 加 method = RequestMethod.GET

最后的访问地址:

http://localhost:8888/swagger-ui.html

posted @ 2019-06-18 14:06  superisland  阅读(154)  评论(0编辑  收藏  举报