How can I log private methods via Spring AOP?
I am not able to log the private methods using spring aop performance logging. Below is the configuration I am using below configuration <aop:config proxy-target-class="true"> <aop:pointcut id="allServiceMethods" expression="execution(* com.mycom.app.abc..*.*(..))"/> <aop:advisor pointcut-ref="allServiceMethods" advice-ref="performanceMonitor" order="2"/> </aop:config> I am having cglib jar on my class path. You have to use compile time weaving instead of the proxy usage for Spring AOP. From Spring AOP - Supported Pointcut Designators Due to the proxy-based nature of Spring’s AOP framework,