spring aop

使用切面,设置mapper层插入语句、更新语句的必填字段。比如插入时间、更新时间。

类名使用@Aspect 和@Component注解,方法名使用@Pointcut定义切点和@Before注解和execution关键字。

 

posted @ 2021-08-29 11:12  李飞∮  阅读(23)  评论(0编辑  收藏  举报