public class JavaMelodyConfig {
@Bean
public MonitoringSpringAdvisor annotationMonitoringAdvisor() {
MonitoringSpringAdvisor annotationMonitoringAdvisor = new MonitoringSpringAdvisor();
annotationMonitoringAdvisor.setPointcut(new MonitoredWithAnnotationPointcut()); // Add pointcut that matches javamelody's @MonitoredWithSpring annotated methods
return annotationMonitoringAdvisor;
}