JFinal-Swagger整合日记

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cyn_653620/article/details/82152211

参考文档:https://blog.csdn.net/weixin_37603867/article/details/79623338

码云项目源码和说明:https://gitee.com/leeckent/jfinal-swagger

需要注意:

1)在git上下载的 swagger-ui-master的dist文件,需要注意版本问题。目前对应2.+版本

2)用jar打包jfinal-swagger或则maven的Run As -> maven build...:

     jar -cvf jfinal-swagger.1.0.jar com/

3) 记得记得向项目中引入jfinal-swagger的相关依赖包。

4)tomcat下和jetty下启动方式不同,访问项目方式不同。可以在jfinal-swagger源码中设置setBasePath。

猜你喜欢

转载自blog.csdn.net/cyn_653620/article/details/82152211