java - spring Aspectj within pointcut expression -
i tried add benchmarking aspect java app , configure using xml, reason can't within designator work.
the aspect should work methods in components package , sub packages instead of aspect package (in order avoid endless loops).
<aop:aspect id="aspectbenchmark" ref="benchmarkaspect" > <aop:around method="logaround" pointcut="within(com.app.components.**) && !within(com.app.components.aspect.**)"/> </aop:aspect> </aop:config>
btw, when changed pointcut expression "execution(@javax.ws.rs.post * *(..))" (just because wanted make sure have nothing wrong aspect class), worked... appreciated.
Comments
Post a Comment