基于注解实现spring aop使用注解进行验证
@Aspect@Componentpublic class DoneTimeAspect { @Around("@annotation(doneTime)") public Object around(ProceedingJoinPoint joinPoint, DoneTime doneTime) throws Throwable { System.out.println("吃提交"); System.out.println("方法开始时间是:"+n.
原创
2020-06-16 23:59:18 ·
131 阅读 ·
0 评论