Intercept private methods with Spring and AspectJ
问题 I am trying to execute code before a private method using AspectJ's load-time-weaving with Spring-Boot and annotation-based configuration and I'm pulling my hair out trying to figure out why my aspect is not being invoked. My simple aspect is as follows: @Aspect public class LoggingAspect { private static Logger log = LoggerFactory.getLogger(LoggingAspect.class); @Before("execution(private * com.mycompany.MyServiceWithPrivateMethods.*(..))") public void privateAspect() { log.warn("####