Open evernat opened 8 years ago
In JavaMelodyAutoConfiguration, I suggest to add the following code, otherwise controllers with @RestController are not monitored
@ConditionalOnProperty(name = "javamelody.enableSpringControllerMonitoring", havingValue = "true") @Bean public MonitoringSpringAdvisor springRestControllerMonitoringAdvisor() { final MonitoringSpringAdvisor interceptor = new MonitoringSpringAdvisor(); interceptor.setPointcut(new AnnotationMatchingPointcut(RestController.class)); return interceptor; }
In JavaMelodyAutoConfiguration, I suggest to add the following code, otherwise controllers with @RestController are not monitored