jfinal-swagger让你的应用接口更加简单

2018/04/26 12:54
阅读数 1K

 

jfinal-swagger让你的应用接口更加简单

https://gitee.com/leeckent/jfinal-swagger/blob/master/README.md

 

   要加个配置文件config.properties ,

   加上swagger.base_package=com.feikao.api.controller  你的controller包路径

1  http://localhost:8083/swagger/api  点击explore

===============================

1 在class

@Api(tag = "member", description = "会员管理")

public class MemberController extends BaseController{

 

    @ApiOperation(url = "/member/login", tag = "login", httpMethod = "get", description = "登入")

@Params({@Param(name = "loginName", required = true, description = "登入用户名"),

@Param(name = "password", required = true, description = "登入密码")

    })

public void login() {

============================

点击 try it out

运行 EXecute可以看执行结果

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部