我想实现一个自定义的注释它看起来像之前调用其他方法: public class Foo{
@CustomAnnotation(classname="com.somepackage.ExternalClass", methodname="method1", invokation="before")
public void bar(){
//method body..
}
我正在为我的Controller,Service和Dao层执行审计。对于Controller,Service和Dao,我有三个Around方面的函数。我使用自定义注释,如果Controller方法存在,将调用Around方面的功能。在注解中,我设置了一个属性,我希望从Controller Around函数传递给Aspect类中的Service around函数。 public @interface
,当我尝试添加自己现有的项目中AspectJ的Maven的插件,我补充一点:
[ERROR] The attribute indexes is undefined for the annotation type Table
E:\T2_SupplierPortal_Angular\core\model\src\main\java\com\model\PaymentGrp.java:3