jfinal-swagger讓你的應用接口更加簡單git
https://gitee.com/leeckent/jfinal-swagger/blob/master/README.mdapi
要加個配置文件config.properties ,ui
加上swagger.base_package=com.feikao.api.controller 你的controller包路徑url
1 http://localhost:8083/swagger/api 點擊explore接口
2 ip
===============================get
1 在classit
@Api(tag = "member", description = "會員管理")io
public class MemberController extends BaseController{ast
2
@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能夠看執行結果