记一次使用SpringAOP遇到的问题
记一次使用SpringAOP遇到的问题1、在需要被切的方法上,加入切点,该方法是使用在service中,需要在Interface中也创建,impl中实现接口。否则调用不到,idea会提示报错:the advice advices no methods;@Override@Pointcut("execution(* com.xxx.methods(java.lang.String)) && args(param)")public void methods(String param){
原创
2021-10-13 11:42:22 ·
1620 阅读 ·
0 评论