切点的定义

1.bean的定义格式(了解)

@Around("bean(userService)")

@Around("bean(userService)||bean(addressService)")

2.类定义切点的格式(了解)

@Around("within(cn.tedu.store.service.UserService)")

@Around("within(cn.tedu.store.service.*Service)")

3.方法定义(掌握)

@Around("execution(* cn.tedu.store..*Service.*(..))")

猜你喜欢

转载自www.cnblogs.com/gjack/p/8962890.html