摘要:
首先,使用注解实现AOP是基于AspectJ方式的。 创建包含切点方法的类 使用@Component注解,相当于创建一个<bean />标签,id就是类名的首字母小写。 使用@Pointcut注解来声明切点方法。 创建通知类 首先需要使用@Component来创建<bean /> 然后使用@Aspe 阅读全文
posted @ 2019-03-07 11:39
寻觅beyond
阅读(322)
评论(0)
推荐(0)
浙公网安备 33010602011771号