第三方库返回对象,如下所示
@Autowired
ThirdPartyFactory thirdPartyFactory;
TestInterface fromThirdParty = thirdPartyFactory.getObject(); //this return TestInferfaceImpl
fromThirdParty.doSomething(someParameter);
如何在TestInterface上执行切入点?是否需要在xml文件中注册?
我试过像下面的点切,但是不起作用
@Around(“execution(* package.TestInterface.doSomething(..))”)