Enable Swagger2 with Spring Boot

Swagger2 dependencies

Add these dependencies to your pom.xml file

Swagger configuration file

Now you can create the Swagger configuration file

Now you are ready. Your REST controllers are now available on Swagger 2. You can access the Swagger documentation via http://localhost:8090/swagger-ui.html You may change the port with the port your application is running.

You can find the complete code from my GitHub

原文链接:Enable Swagger2 with Spring Boot

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
Stop to have a rest, do not forget others still in the running.
停下来休息的时候,不要忘记别人还在奔跑
评论 抢沙发

请登录后发表评论

    暂无评论内容