@At("/delete/?")
@GET
@ApiOperation(value = "删除学生",httpMethod = "GET")
@ApiImplicitParams({
@ApiImplicitParam(name = "id",paramType = "path",dataTypeClass = Long.class,required = true)
})
public MsgInfo delete(long id){
try {
dao.delete(Stud.class,id);
return MsgInfo.success().setData(true);
}catch (Exception ex){
MsgInfo msg= MsgInfo.fail().setData(false);
msg.msg=ex.getMessage();
return msg;
}
}
使用swagger测试时为什么 不能下确传参数,测试报404