我正在使用注释来指示需要将建议应用于该方法。
我在一个名为的接口中有两种方法IMaintenanceDAOSupport
@AuditLogging
void insert(M domainobject, IntResponse response, String statementName);
@AuditLogging
int delete(M domainobject, IntResponse response, String statementName);
我们如何为要应用的方面配置 xml?
目前我有
<aop:config>
<aop:aspect ref="auditAOP">
<aop:pointcut id="im-insert"
expression="within(IMaintenanceDAOSupport)and execution(@annotation(AuditLogging))"/>
<aop:after method="afterInsertUpdateOrDelete" pointcut-ref="im-insert"/>
</aop:aspect>
</aop:config>
它给出了编译错误;您在配置中看到任何错误吗?