跳过导航链接
C D E F G H I J L M N O P R S T U V W 

C

com.relaxed.autoconfigure.web.config - 程序包 com.relaxed.autoconfigure.web.config
 
com.relaxed.autoconfigure.web.config.mybatis - 程序包 com.relaxed.autoconfigure.web.config.mybatis
 
com.relaxed.autoconfigure.web.config.thread - 程序包 com.relaxed.autoconfigure.web.config.thread
 
com.relaxed.autoconfigure.web.constants - 程序包 com.relaxed.autoconfigure.web.constants
 
com.relaxed.autoconfigure.web.exception - 程序包 com.relaxed.autoconfigure.web.exception
 
com.relaxed.autoconfigure.web.filter - 程序包 com.relaxed.autoconfigure.web.filter
 
com.relaxed.autoconfigure.web.jackson - 程序包 com.relaxed.autoconfigure.web.jackson
 
com.relaxed.autoconfigure.web.servlet - 程序包 com.relaxed.autoconfigure.web.servlet
 
customJavaTimeModule() - 类 中的方法com.relaxed.autoconfigure.web.jackson.JacksonConfig
注册自定义的Jackson时间格式模块 用于覆盖默认的时间格式
CustomMybatisPlusConfig - com.relaxed.autoconfigure.web.config.mybatis中的类
MyBatis-Plus 自定义配置类 提供分页插件、自动填充处理器和自定义SQL注入器 支持批量插入、忽略插入和替换插入等扩展功能
CustomMybatisPlusConfig() - 类 的构造器com.relaxed.autoconfigure.web.config.mybatis.CustomMybatisPlusConfig
 
customSqlInjector() - 类 中的方法com.relaxed.autoconfigure.web.config.mybatis.CustomMybatisPlusConfig
配置自定义SQL注入器 注入批量插入、忽略插入和替换插入等扩展方法 对于只在更新时进行填充的字段不做插入处理

D

decorate(Runnable) - 类 中的方法com.relaxed.autoconfigure.web.config.thread.MdcTaskDecorator
装饰Runnable任务 在任务执行前保存当前MDC上下文 在任务执行时恢复主线程的MDC上下文 在任务执行后恢复原来的MDC上下文
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - 类 中的方法com.relaxed.autoconfigure.web.filter.TraceIdFilter
处理HTTP请求 为每个请求添加唯一的TraceId,并在请求完成后清理

E

ExceptionConfiguration - com.relaxed.autoconfigure.web.exception中的类
异常配置类 配置异常通知相关的切点和切面 支持通过@ExceptionNotice注解标记需要通知的方法
ExceptionConfiguration() - 类 的构造器com.relaxed.autoconfigure.web.exception.ExceptionConfiguration
 
exceptionNotice() - 类 中的方法com.relaxed.autoconfigure.web.exception.ExceptionConfiguration
创建异常通知切点 支持类级别和方法级别的@ExceptionNotice注解

F

fillMetaObjectHandle() - 类 中的方法com.relaxed.autoconfigure.web.config.mybatis.CustomMybatisPlusConfig
配置自动填充处理器 用于自动填充实体类中的创建时间和更新时间字段
FillMetaObjectHandle - com.relaxed.autoconfigure.web.config.mybatis中的类
MyBatis-Plus 自动填充处理器 用于自动填充实体类中的创建时间和更新时间字段 支持多种字段命名方式:createTime/createdTime 和 updateTime/updatedTime
FillMetaObjectHandle() - 类 的构造器com.relaxed.autoconfigure.web.config.mybatis.FillMetaObjectHandle
 

G

GlobalExceptionHandlerResolver - com.relaxed.autoconfigure.web.exception中的类
全局异常处理器 统一处理应用程序中的各种异常,包括业务异常、参数校验异常、系统异常等 根据不同的异常类型返回相应的错误信息和状态码
GlobalExceptionHandlerResolver() - 类 的构造器com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
 

H

handleBallCatException(BusinessException, HttpServletRequest) - 类 中的方法com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
处理业务异常 业务异常响应码使用200,通过result结构中的code标识业务错误码
handleBodyValidException(Exception, HttpServletRequest) - 类 中的方法com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
处理参数校验异常 包括方法参数校验异常和绑定异常
handleGlobalException(Exception, HttpServletRequest) - 类 中的方法com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
处理全局异常 捕获所有未明确处理的异常,根据环境返回不同的错误信息
handleIllegalArgumentException(IllegalArgumentException, HttpServletRequest) - 类 中的方法com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
处理非法参数异常 主要用于处理Assert断言失败的情况
handleMethodArgumentTypeMismatchException(Exception, HttpServletRequest) - 类 中的方法com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
处理参数类型转换异常 当请求参数类型与目标类型不匹配时触发
handleValidationException(Exception, HttpServletRequest) - 类 中的方法com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
处理单体参数校验异常 处理单个参数的校验异常

I

insertFill(MetaObject) - 类 中的方法com.relaxed.autoconfigure.web.config.mybatis.FillMetaObjectHandle
插入时自动填充 自动填充创建时间和更新时间
isBindExceptionRequired(WebDataBinder, MethodParameter) - 类 中的方法com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
检查是否需要绑定异常

J

JacksonConfig - com.relaxed.autoconfigure.web.jackson中的类
Jackson配置类 配置Jackson序列化和反序列化的行为 包括时间格式、空值处理、脱敏等功能
JacksonConfig() - 类 的构造器com.relaxed.autoconfigure.web.jackson.JacksonConfig
 
jsonDesensitizeModule() - 类 中的方法com.relaxed.autoconfigure.web.jackson.JacksonConfig
注册Jackson的脱敏模块 用于处理敏感数据的序列化
jsonDesensitizeModule(DesensitizeStrategy) - 类 中的方法com.relaxed.autoconfigure.web.jackson.JacksonConfig
注册带策略的Jackson脱敏模块 使用指定的脱敏策略处理敏感数据

L

LogConstant - com.relaxed.autoconfigure.web.constants中的类
日志常量类 定义日志相关的常量,如TraceId等

M

MdcTaskDecorator - com.relaxed.autoconfigure.web.config.thread中的类
MDC任务装饰器 用于在线程池中传递MDC上下文信息 确保异步任务能够正确获取和传递日志上下文 主要作用是将主线程的MDC上下文透传至子线程
MdcTaskDecorator() - 类 的构造器com.relaxed.autoconfigure.web.config.thread.MdcTaskDecorator
 
mdcTaskDecorator() - 类 中的方法com.relaxed.autoconfigure.web.config.thread.TaskExecutionConfiguration
配置MDC任务装饰器 用于在线程池中传递MDC上下文信息 确保异步任务能够正确获取和传递日志上下文
mybatisPlusInterceptor() - 类 中的方法com.relaxed.autoconfigure.web.config.mybatis.CustomMybatisPlusConfig
配置MyBatis-Plus拦截器 默认提供分页插件,支持MySQL数据库 如需其他内置插件,需要自定义该Bean

N

NLP_MSG - 类 中的静态变量com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
空指针异常提示信息

O

objectMapper(Jackson2ObjectMapperBuilder) - 类 中的方法com.relaxed.autoconfigure.web.jackson.JacksonConfig
创建自定义ObjectMapper 配置Jackson的序列化和反序列化行为

P

PageParamArgumentResolver - com.relaxed.autoconfigure.web.servlet中的类
分页参数解析器 用于解析Controller方法中的分页参数,支持分页查询和排序 提供SQL注入防护和参数校验功能
PageParamArgumentResolver() - 类 的构造器com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
默认构造函数,不限制分页大小
PageParamArgumentResolver(int) - 类 的构造器com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
带分页大小限制的构造函数
pageParamArgumentResolver() - 类 中的方法com.relaxed.autoconfigure.web.servlet.WebMvcAutoConfiguration
创建分页参数解析器 用于解析Controller方法中的分页参数
paramValidate(MethodParameter, ModelAndViewContainer, NativeWebRequest, WebDataBinder, PageParam) - 类 中的方法com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
参数校验 检查分页大小是否超过限制
PROD_ERR_MSG - 类 中的静态变量com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
生产环境错误提示信息

R

RelaxedWebProperties - com.relaxed.autoconfigure.web.config中的类
WebProperties
RelaxedWebProperties() - 类 的构造器com.relaxed.autoconfigure.web.config.RelaxedWebProperties
 
requestNotSupportedException(Exception, HttpServletRequest) - 类 中的方法com.relaxed.autoconfigure.web.exception.GlobalExceptionHandlerResolver
处理请求方式异常 包括不支持的媒体类型和请求方法
resolveArgument(MethodParameter, ModelAndViewContainer, NativeWebRequest, WebDataBinderFactory) - 类 中的方法com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
解析分页参数 从请求中提取分页参数,包括当前页、每页大小和排序信息 支持参数校验和SQL注入防护

S

supportsParameter(MethodParameter) - 类 中的方法com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
判断是否支持当前参数类型 检查参数类型是否为PageParam或其子类

T

TaskExecutionConfiguration - com.relaxed.autoconfigure.web.config.thread中的类
任务执行配置类 用于配置线程池和任务装饰器 支持MDC上下文传递和自定义线程池策略
TaskExecutionConfiguration() - 类 的构造器com.relaxed.autoconfigure.web.config.thread.TaskExecutionConfiguration
 
taskExecutorCustomizerExtend() - 类 中的方法com.relaxed.autoconfigure.web.config.thread.TaskExecutionConfiguration
配置线程池自定义器 设置线程池的拒绝策略为CallerRunsPolicy 当线程池无法处理新任务时,由调用者线程执行该任务
TRACE_ID - 类 中的静态变量com.relaxed.autoconfigure.web.constants.LogConstant
跟踪ID常量 用于在一次请求或执行方法时,关联产生的各种日志
TraceIdFilter - com.relaxed.autoconfigure.web.filter中的类
TraceId过滤器 利用Slf4J的MDC功能,为每个请求添加唯一的TraceId 用于在分布式系统中追踪请求链路
TraceIdFilter() - 类 的构造器com.relaxed.autoconfigure.web.filter.TraceIdFilter
 
traceIdFilterRegistrationBean() - 类 中的方法com.relaxed.autoconfigure.web.servlet.WebMvcAutoConfiguration
创建TraceId过滤器 用于在请求中添加TraceId,方便日志追踪

U

updateFill(MetaObject) - 类 中的方法com.relaxed.autoconfigure.web.config.mybatis.FillMetaObjectHandle
更新时自动填充 自动填充更新时间

V

validateIfApplicable(WebDataBinder, MethodParameter) - 类 中的方法com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
检查是否需要应用验证
validFieldName(String) - 类 中的方法com.relaxed.autoconfigure.web.servlet.PageParamArgumentResolver
验证字段名是否合法 检查字段名是否符合命名规范,且不是SQL关键字

W

WebMvcAutoConfiguration - com.relaxed.autoconfigure.web.servlet中的类
Web MVC自动配置类 配置Web MVC相关的组件,包括分页参数解析器和TraceId过滤器
WebMvcAutoConfiguration() - 类 的构造器com.relaxed.autoconfigure.web.servlet.WebMvcAutoConfiguration
 
C D E F G H I J L M N O P R S T U V W 
跳过导航链接

Copyright © 2025. All rights reserved.