切点的定义

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.*(..))")
posted @ 2018-04-27 16:00  爱吃醋的工程师  阅读(348)  评论(0编辑  收藏  举报