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.**) &amp;&amp; !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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -