公共字段自动填充

2024/9/19 11:19:06

JavaWeb笔记整理14——公共字段自动填充技术实现

目录 为什么需要公共字段自动填充? 步骤1 自定义注解AutoFill 步骤2 自定义切面AutoFillAspect 步骤3 在Mapper接口的方法上加入AutoFill注解 Before("autoFillPointCut()") JoinPoint 你能通过 JoinPoint 获取哪些信息? 例子中的 Join…