最近闲的蛋疼,就学习了一下springboot和swagger2,并自己做了一个小demo
首先:显配置pom.xml文件
其次可以写swagger的config:
接下来写contorller:
最后测试注意路径 访问地址:http://localhost:8888/{工程contextPath}/swagger-ui.html :
有需要代码的童鞋 可以在这个链接下载:http://download.csdn.net/download/qq616138361/10036593点击打开链接