05 springBoot 与swagger 集成

使用网址:

http://blog.csdn.net/catoop/article/details/50668896

https://gumutianqi1.gitbooks.io/specification-doc/content/specification-doc/spring-boot-guide.html

swagger ui 使用教程

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

搭建过程

application: 中必须要添加 Swagger 的注解: @EnableSwagger2

引入两个包

将Swaager 的配置文件和Appication 放在同层目录下

results matching ""

    No results matching ""