You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ConditionalOnBean matches beans that are not autowire candidates resulting in UnsatisfiedDependencyException when an attempt is made to inject the bean #41526
And having spring-boot-starter-actuator and micrometer-core in dependencies the test fails with:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.metrics.task.TaskExecutorMetricsAutoConfiguration':
Unsatisfied dependency expressed through method 'bindTaskExecutorsToRegistry' parameter 0:
No qualifying bean of type 'java.util.Map<java.lang.String, java.util.concurrent.Executor>' available:
expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}