WebCallbackManager SpringBoot2.2.0 無法導包,不相容問題 主要是Sentinel
阿新 • • 發佈:2020-08-14
切入點表示式說明
aop:pointcut配置切入點表示式
1 <aop:pointcut expression="execution(public void com.service.impl.CustomerServiceImpl.saveCustomer())" id="pt1"/>
表示式語法:
1 execution([修飾符] 返回值型別 包名.類名.方法名(引數)) 2 3 execution( public void com.service.UserServiceImpl.saveCustomer(Customer customer) )
對錶達式進行優化
1.全匹配寫法
1 execution( public void com.service.UserServiceImpl.saveCustomer(Customer customer) )
2.預設public
可以省略
1 execution( void com.service.UserServiceImpl.saveCustomer(Customer customer) )
3.匹配任何返回值
1 execution( * com.service.UserServiceImpl.saveCustomer(Customer customer) )
4.引數列表可以使用*
, 表示可以是任何的資料型別,但必須有引數
1 execution( * com.service.UserServiceImpl.saveCustomer( * ) )
5.引數列表可以使用..
表示有無引數均可,有引數可以是任意型別
1 execution( * com.service.UserServiceImpl.saveCustomer( .. ) )
6.包名可以使用*號,表示任意包,但是有幾級包,需要寫幾個
1 execution( * *.*.UserServiceImpl.saveCustomer( .. ) )
7.使用..來表示當前包,及其子包
1 execution( * com..UserServiceImpl.saveCustomer( .. ) )
8.類名可以使用*號,表示任意類
1 execution( * com..*.saveCustomer( .. ) )
9.類名也可以使用*
加字尾,表示這個字尾的所有類
1 execution( * com..*ServiceImpl.saveCustomer( .. ) )
10.方法名可以使用*
號,表示任意方法
1 execution( * com..*.* ( .. ) )
11.全通配方式
1 execution( * *..*.* ( .. ) )