Closed
Description
Due to changes in micrometer-core, spring-boot-starter-actuator was updated in issue #27688 to handle the fact that micrometer have changed the package that DiskSpaceMetrics is in (it's now in io.micrometer.core.instrument.binder.system.DiskSpaceMetrics).
The problem is that micrometer-core did that change in the 1.8.* versions but spring-boot-starter-actuator (2.6.1) is pulling in the older 1.7.3 version of micrometer-core which has that class in the old package.
This results in a java.lang.NoClassDefFoundError when initialising the SimpleMetricsExportAutoConfiguration bean.
I was able to work around this problem locally by adding an explicit dependency to micrometer-core 1.8.1 in my pom:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-core</artifactId>
<version>1.8.1</version>
</dependency>