2018年7月15日

springfox+swagger2生成API文档

摘要: 1、建立一个spring mvc工程; 2、添加POM依赖: 3、config类 4、编写Controller 6、web.xml增加能访问html文件的代码 7、运行,浏览器中打开“http://127.0.0.1:8080/test/v2/api-docs”或者“http://127.0.0.1 阅读全文

posted @ 2018-07-15 01:18 小夏coding 阅读(248) 评论(0) 推荐(0) 编辑

idea+maven+springmvc+helloworld

摘要: 1、添加依赖,并在项目上添加Spring mvc框架的支持(add FrameWork Support): 2、配置web.xml 3、配置dispatcher-servlet.xml 4、配置applicationContext.xml 5、编写controller 6、在WEB-INF下建立vi 阅读全文

posted @ 2018-07-15 00:19 小夏coding 阅读(410) 评论(1) 推荐(0) 编辑

导航