您的浏览器已禁用 JavaScript。
跳过导航链接
概览
程序包
类
使用
树
已过时
索引
帮助
上一个
下一个
框架
无框架
所有类
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
R
S
T
U
V
A
afterCompletion(HttpServletRequest, HttpServletResponse, Object, Exception)
- 类 中的方法net.wenzuo.base.interceptor.
LoggingInterceptor
append(String)
- 类 中的静态方法net.wenzuo.base.interceptor.
LoggingContextHolder
Assert
-
net.wenzuo.base.util
中的类
Assert()
- 类 的构造器net.wenzuo.base.util.
Assert
B
badRequest()
- 类 中的静态方法net.wenzuo.base.util.
Ret
beforeBodyWrite(Object, MethodParameter, MediaType, Class<? extends HttpMessageConverter<?>>, ServerHttpRequest, ServerHttpResponse)
- 类 中的方法net.wenzuo.base.config.
ResponseBodyConfig
C
code
- 枚举 中的变量net.wenzuo.base.util.
RetEnum
configBuilder(Jackson2ObjectMapperBuilder)
- 类 中的静态方法net.wenzuo.base.util.
JsonUtil
对 Jackson2ObjectMapperBuilder 进行常用配置
D
decode(String)
- 类 中的静态方法net.wenzuo.base.util.
ShortUuidUtil
将缩短为 22 位的 UUID 反编码为 32 位的 UUID
DEFAULT_EXCLUDE_PATHS
- 类 中的静态变量net.wenzuo.base.filter.
HttpLoggingConfig
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain)
- 类 中的方法net.wenzuo.base.filter.
HttpLoggingFilter
E
encode(String)
- 类 中的静态方法net.wenzuo.base.util.
ShortUuidUtil
将 uuid 缩短至 22 位
equals(String, String, String)
- 类 中的静态方法net.wenzuo.base.util.
Assert
equals(String, String, String, Object...)
- 类 中的静态方法net.wenzuo.base.util.
Assert
equalsIgnoreCase(String, String, String)
- 类 中的静态方法net.wenzuo.base.util.
Assert
equalsIgnoreCase(String, String, String, Object...)
- 类 中的静态方法net.wenzuo.base.util.
Assert
ExceptionConfig
-
net.wenzuo.base.config
中的类
全局统一异常处理类
ExceptionConfig()
- 类 的构造器net.wenzuo.base.config.
ExceptionConfig
F
fail(int, String)
- 类 中的静态方法net.wenzuo.base.util.
Ret
fail(String)
- 类 中的静态方法net.wenzuo.base.util.
Ret
fail(String, Object...)
- 类 中的静态方法net.wenzuo.base.util.
Ret
fail(Retable)
- 类 中的静态方法net.wenzuo.base.util.
Ret
forbidden()
- 类 中的静态方法net.wenzuo.base.util.
Ret
G
get()
- 类 中的静态方法net.wenzuo.base.interceptor.
LoggingContextHolder
getCode()
- 类 中的方法net.wenzuo.base.util.
Ret
getCode()
- 接口 中的方法net.wenzuo.base.util.
Retable
getData()
- 类 中的方法net.wenzuo.base.util.
Ret
getInputStream()
- 类 中的方法net.wenzuo.base.filter.
RequestWrapper
getIp(HttpServletRequest)
- 类 中的静态方法net.wenzuo.base.util.
IpUtil
获取 ip 地址 格式 xxx.xxx.xxx.xxx
getMsg()
- 类 中的方法net.wenzuo.base.util.
Ret
getMsg()
- 接口 中的方法net.wenzuo.base.util.
Retable
getReader()
- 类 中的方法net.wenzuo.base.filter.
RequestWrapper
H
handler(ServiceException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
业务异常处理 如支付失败
handler(IllegalArgumentException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
参数错误
handler(MissingServletRequestParameterException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
请求参数缺失异常处理 如要 name 字段, 却传递 eg: Required String parameter 'name' is not present
handler(MethodArgumentTypeMismatchException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
请求参数类型不匹配异常处理 如要 Integer 参数, 却传了字符串, 且无法转换为 Integer eg: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "hello"
handler(MethodArgumentNotValidException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
请求参数校验失败异常处理 即 @Validated 校验失败
handler(ConstraintViolationException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
请求参数校验失败异常处理 即 @Valid 校验失败
handler(HttpRequestMethodNotSupportedException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
请求方法错误异常处理 即 POST 接口, 请求时用了 GET 方法
handler(HttpMessageNotReadableException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
请求体不可读错误异常处理 如 要求接收一个 json 请求体, 但是未读取到
handler(HttpMediaTypeNotSupportedException)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
请求的 contentType 不支持 如 要求接收一个 json 请求体, 但传了 form-data
handler(Exception)
- 类 中的方法net.wenzuo.base.config.
ExceptionConfig
默认异常处理
HttpLoggingConfig
-
net.wenzuo.base.filter
中的类
HttpLoggingConfig()
- 类 的构造器net.wenzuo.base.filter.
HttpLoggingConfig
httpLoggingConfig()
- 类 中的方法net.wenzuo.base.filter.
HttpLoggingFilter
HttpLoggingFilter
-
net.wenzuo.base.filter
中的类
HttpLoggingFilter()
- 类 的构造器net.wenzuo.base.filter.
HttpLoggingFilter
I
IpUtil
-
net.wenzuo.base.util
中的类
获取 IP 工具类
IpUtil()
- 类 的构造器net.wenzuo.base.util.
IpUtil
isFail()
- 类 中的方法net.wenzuo.base.util.
Ret
isOk()
- 类 中的方法net.wenzuo.base.util.
Ret
isTrue(boolean, String)
- 类 中的静态方法net.wenzuo.base.util.
Assert
isTrue(boolean, String, Object...)
- 类 中的静态方法net.wenzuo.base.util.
Assert
J
JacksonConfig
-
net.wenzuo.base.config
中的类
JacksonConfig()
- 类 的构造器net.wenzuo.base.config.
JacksonConfig
jsonCustomizer()
- 类 中的方法net.wenzuo.base.config.
JacksonConfig
JsonUtil
-
net.wenzuo.base.util
中的类
Json 处理工具类
JsonUtil()
- 类 的构造器net.wenzuo.base.util.
JsonUtil
L
LoggingContextHolder
-
net.wenzuo.base.interceptor
中的类
请求响应日志记录
LoggingContextHolder()
- 类 的构造器net.wenzuo.base.interceptor.
LoggingContextHolder
LoggingInterceptor
-
net.wenzuo.base.interceptor
中的类
日志拦截器 用于记录请求参数, 响应参数, 请求耗时等
LoggingInterceptor()
- 类 的构造器net.wenzuo.base.interceptor.
LoggingInterceptor
M
msg
- 枚举 中的变量net.wenzuo.base.util.
RetEnum
N
net.wenzuo.base.config
- 程序包 net.wenzuo.base.config
net.wenzuo.base.exception
- 程序包 net.wenzuo.base.exception
net.wenzuo.base.filter
- 程序包 net.wenzuo.base.filter
net.wenzuo.base.interceptor
- 程序包 net.wenzuo.base.interceptor
net.wenzuo.base.util
- 程序包 net.wenzuo.base.util
notEmpty(Object[], String)
- 类 中的静态方法net.wenzuo.base.util.
Assert
notEmpty(Object[], String, Object...)
- 类 中的静态方法net.wenzuo.base.util.
Assert
notEmpty(Collection<?>, String)
- 类 中的静态方法net.wenzuo.base.util.
Assert
notEmpty(Collection<?>, String, Object...)
- 类 中的静态方法net.wenzuo.base.util.
Assert
notFound()
- 类 中的静态方法net.wenzuo.base.util.
Ret
notNull(Object, String)
- 类 中的静态方法net.wenzuo.base.util.
Assert
notNull(Object, String, Object...)
- 类 中的静态方法net.wenzuo.base.util.
Assert
O
ok()
- 类 中的静态方法net.wenzuo.base.util.
Ret
ok(T)
- 类 中的静态方法net.wenzuo.base.util.
Ret
P
parseObject(String, Class<T>)
- 类 中的静态方法net.wenzuo.base.util.
JsonUtil
将 Json 字符串转为 Java 对象
preHandle(HttpServletRequest, HttpServletResponse, Object)
- 类 中的方法net.wenzuo.base.interceptor.
LoggingInterceptor
R
renderJson(HttpServletResponse, Object)
- 类 中的静态方法net.wenzuo.base.util.
ResponseUtil
RequestWrapper
-
net.wenzuo.base.filter
中的类
对 HttpServletRequest 进行包装 实现了可重复获取 getReader() 和 getInputStream()
RequestWrapper(HttpServletRequest)
- 类 的构造器net.wenzuo.base.filter.
RequestWrapper
ResponseBodyConfig
-
net.wenzuo.base.config
中的类
ResponseBodyConfig()
- 类 的构造器net.wenzuo.base.config.
ResponseBodyConfig
ResponseUtil
-
net.wenzuo.base.util
中的类
响应工具类 提供一些响应封装
ResponseUtil()
- 类 的构造器net.wenzuo.base.util.
ResponseUtil
Ret
<
T
> -
net.wenzuo.base.util
中的类
统一响应, 用于返回 json 响应体
Ret()
- 类 的构造器net.wenzuo.base.util.
Ret
Retable
-
net.wenzuo.base.util
中的接口
错误码枚举类需继承此接口
Ret
的 fail(Retable ret) 方法可传递此接口的实现类
RetEnum
-
net.wenzuo.base.util
中的枚举
基础错误码枚举类
S
serverError()
- 类 中的静态方法net.wenzuo.base.util.
Ret
ServiceException
-
net.wenzuo.base.exception
中的异常错误
业务异常类 此异常保留了异常栈追踪信息
ServiceException(String)
- 异常错误 的构造器net.wenzuo.base.exception.
ServiceException
业务异常
ServiceException(String, Object...)
- 异常错误 的构造器net.wenzuo.base.exception.
ServiceException
业务异常
ServiceException(Retable)
- 异常错误 的构造器net.wenzuo.base.exception.
ServiceException
业务异常
ServiceException(int, String)
- 异常错误 的构造器net.wenzuo.base.exception.
ServiceException
业务异常
setCode(int)
- 类 中的方法net.wenzuo.base.util.
Ret
setData(T)
- 类 中的方法net.wenzuo.base.util.
Ret
setMsg(String)
- 类 中的方法net.wenzuo.base.util.
Ret
ShortUuidUtil
-
net.wenzuo.base.util
中的类
缩短 UUID 至 22 位 参考自: https://github.com/hsingh/java-shortuuid
ShortUuidUtil()
- 类 的构造器net.wenzuo.base.util.
ShortUuidUtil
shouldNotFilter(HttpServletRequest)
- 类 中的方法net.wenzuo.base.filter.
HttpLoggingFilter
start()
- 类 中的静态方法net.wenzuo.base.interceptor.
LoggingContextHolder
stop()
- 类 中的静态方法net.wenzuo.base.interceptor.
LoggingContextHolder
supports(MethodParameter, Class<? extends HttpMessageConverter<?>>)
- 类 中的方法net.wenzuo.base.config.
ResponseBodyConfig
T
toJsonString(T)
- 类 中的静态方法net.wenzuo.base.util.
JsonUtil
将 Java 对象转为 Json 字符串
toString()
- 类 中的方法net.wenzuo.base.util.
Ret
U
unauthorized()
- 类 中的静态方法net.wenzuo.base.util.
Ret
V
valueOf(String)
- 枚举 中的静态方法net.wenzuo.base.util.
RetEnum
返回带有指定名称的该类型的枚举常量。
values()
- 枚举 中的静态方法net.wenzuo.base.util.
RetEnum
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
R
S
T
U
V
跳过导航链接
概览
程序包
类
使用
树
已过时
索引
帮助
上一个
下一个
框架
无框架
所有类
Copyright © 2021. All rights reserved.