Class MonitoringAutoConfiguration

java.lang.Object
com.nmontytskyi.monitoring.starter.config.MonitoringAutoConfiguration

@AutoConfiguration @ConditionalOnProperty(prefix="monitoring", name="enabled", havingValue="true", matchIfMissing=true) @EnableAspectJAutoProxy @EnableScheduling @EnableConfigurationProperties(MonitoringProperties.class) public class MonitoringAutoConfiguration extends Object
Auto-configuration for the monitoring starter.

Activated in two ways:

  1. Via META-INF/spring/AutoConfiguration.imports — uses application.yml properties under the monitoring.* prefix.
  2. Via @MonitoredMicroservice on the main application class — annotation attribute values are registered as the lowest-priority PropertySource by MonitoredMicroserviceEnvironmentPostProcessor before any bean processing takes place, so application.yml always overrides them.

The cascade is: annotation defaults → overridden by YAML → overridden by system properties. This means @ConditionalOnProperty, @Scheduled, and @ConfigurationProperties all see the correct effective value without any special handling here.