returnCode

@returnCode是自定义taglet,描述的是接口的返回码。返回码的使用比较常见,比如HTTP协议中200表示服务返回成功,404表示找不到请求地址对应的服务。

/**
 * 删除课程 
 * @returnCode 400 404 503
 */
@RequestMapping(value = "/class/del", method = RequestMethod.POST)
public @ResponseBody
Clazz delClass(@RequestBody Clazz clazz, HttpServletRequest httpRequest,
        HttpServletResponse httpResponse) {
    return clazz;
}

results matching ""

    No results matching ""