类的使用
cn.huermao.framework.base.AjaxResult
-
使用AjaxResult的程序包 程序包 说明 cn.huermao.framework.base cn.huermao.framework.exception -
-
cn.huermao.framework.base中AjaxResult的使用
返回AjaxResult的cn.huermao.framework.base中的方法 修饰符和类型 方法 说明 AjaxResultBaseCtrl. add(EntityBo bo)default AjaxResultBaseService. add(EntityBo bo)AjaxResultBaseCtrl. deleteById(Long id)default AjaxResultBaseService. deleteById(Long id)static AjaxResult<Void>AjaxResult. error()返回错误消息static AjaxResult<Void>AjaxResult. error(int code, String msg)返回错误消息static AjaxResult<Void>AjaxResult. error(String msg)返回错误消息static <T> AjaxResult<T>AjaxResult. error(String msg, T data)返回错误消息AjaxResultBaseCtrl. getAll()default AjaxResultBaseService. getAll()AjaxResultBaseCtrl. getById(Long id)default AjaxResultBaseService. getById(Long id)AjaxResultBaseCtrl. getPage(BasePageQuery basePageQuery)default AjaxResultBaseService. getPage(BasePageQuery query)static AjaxResult<Void>AjaxResult. success()返回成功消息static AjaxResult<Void>AjaxResult. success(String msg)返回成功消息static <T> AjaxResult<T>AjaxResult. success(String msg, T data)返回成功消息static <T> AjaxResult<T>AjaxResult. success(T data)返回成功数据AjaxResultBaseCtrl. update(EntityBo bo)default AjaxResultBaseService. update(EntityBo bo) -
cn.huermao.framework.exception中AjaxResult的使用
返回AjaxResult的cn.huermao.framework.exception中的方法 修饰符和类型 方法 说明 AjaxResultGlobalExceptionHandler. constraintViolationException(javax.validation.ConstraintViolationException e)自定义验证异常AjaxResultGlobalExceptionHandler. handleBindException(org.springframework.validation.BindException e)自定义验证异常AjaxResultGlobalExceptionHandler. handleException(Exception e, javax.servlet.http.HttpServletRequest request)系统异常AjaxResultGlobalExceptionHandler. handleHttpRequestMethodNotSupported(org.springframework.web.HttpRequestMethodNotSupportedException e, javax.servlet.http.HttpServletRequest request)请求方式不支持AjaxResultGlobalExceptionHandler. handleRuntimeException(RuntimeException e, javax.servlet.http.HttpServletRequest request)拦截未知的运行时异常AjaxResultGlobalExceptionHandler. handleServiceException(ServiceException e, javax.servlet.http.HttpServletRequest request)业务异常
-