Ich versucheSpringboot MetricRepository
org.springframework.boot.actuate.metrics.repository.MetricRepository
zu verwenden Metriken auszuspucken mit
private final MetricRepository repository;
@Autowired
public MetricExporterService(MetricRepository repository) {
this.repository = repository;
}
aber da ich verwende Java 1.8 ich
Parameter 0 of constructor in com.example.actuator.MetricExporterService required a bean of type 'org.springframework.boot.actuate.metrics.repository.MetricRepository' that could not be found.
- Bean method 'actuatorMetricRepository' not loaded because @ConditionalOnJava (older than 1.8) found 1.8
Gibt es eine Möglichkeit von Dieses Verhalten überschreiben?