类的使用
cn.hamm.airpower.model.Json
使用Json的程序包
-
cn.hamm.airpower.interceptor中Json的使用
修饰符和类型方法说明ExceptionInterceptor.badRequestHandle(@NotNull jakarta.validation.ConstraintViolationException exception) 参数校验失败ExceptionInterceptor.badRequestHandle(@NotNull org.springframework.web.bind.MethodArgumentNotValidException exception) 参数验证失败ExceptionInterceptor.databaseExceptionHandle(@NotNull org.springframework.transaction.CannotCreateTransactionException exception) 数据库连接发生错误ExceptionInterceptor.dataExceptionHandle(@NotNull org.springframework.http.converter.HttpMessageNotReadableException exception) 请求的数据不是标准JSONExceptionInterceptor.deleteUsingDataException(Exception exception) 删除时的数据关联校验异常ExceptionInterceptor.httpMediaTypeNotSupportedExceptionHandle(@NotNull org.springframework.web.HttpMediaTypeNotSupportedException exception) 不支持的数据类型ExceptionInterceptor.invalidDataAccessResourceUsageExceptionHandle(@NotNull org.springframework.dao.InvalidDataAccessResourceUsageException exception) 数据表或字段异常ExceptionInterceptor.maxUploadSizeExceededExceptionHandle(@NotNull org.springframework.web.multipart.MaxUploadSizeExceededException exception) 数据表或字段异常ExceptionInterceptor.methodExceptionHandle(@NotNull org.springframework.web.HttpRequestMethodNotSupportedException exception) 不支持的请求方法ExceptionInterceptor.notFoundHandle(@NotNull org.springframework.web.servlet.NoHandlerFoundException exception, jakarta.servlet.http.HttpServletResponse response) 访问的接口没有实现ExceptionInterceptor.propertyReferenceExceptionHandle(@NotNull org.springframework.data.mapping.PropertyReferenceException exception) 数据字段不存在ExceptionInterceptor.redisExceptionHandle(@NotNull org.springframework.data.redis.RedisConnectionFailureException exception) REDIS连接发生错误ExceptionInterceptor.systemExceptionHandle(@NotNull ServiceException exception) 系统自定义异常 -
cn.hamm.airpower.model中Json的使用
返回Json的cn.hamm.airpower.model中的方法修饰符和类型方法说明static Json输出数据static Json输出数据static <E extends RootEntity<E>>
Json输出实体static Json输出实体static JsonJson.error(@NotNull IException error, String message) 输出错误static JsonJson.error(IException error) 输出错误static Json输出错误static Json输出Jsonstatic Json输出提示信息 -
cn.hamm.airpower.root中Json的使用
返回Json的cn.hamm.airpower.root中的方法修饰符和类型方法说明添加一条新数据接口删除一条已存在的数据接口禁用一条已存在的数据启用一条已存在的数据查询一条详情数据RootEntityController.getList(QueryRequest<E> queryRequest) 不分页查询RootEntityController.getPage(QueryPageRequest<E> queryPageRequest) 分页查询修改一条已存在的数据接口