使用切面,设置mapper层插入语句、更新语句的必填字段。比如插入时间、更新时间。
类名使用@Aspect 和@Component注解,方法名使用@Pointcut定义切点和@Before注解和execution关键字。