ARTICLE AD BOX
I am upgrading my Spring Boot app to Spring Boot 4.0.1.
However, I can not figure out the correct dependency to add to my pom.xml for the following annotations in my @SpringBootTest annotated integration test base class:
@AutoConfigureMetrics @AutoConfigureTracingI already added the dependencies below, but without result yet: the compiler can't resolve these annotations.
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-actuator-autoconfigure</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-test-autoconfigure</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-autoconfigure</artifactId> <version>${spring-boot.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-classic</artifactId> </dependency>The latter dependency
spring-boot-starter-classicshould not be necessary, but was advised me in order to solve the issue, but it did not help.
Any ideas?
FYI, I took the imports from the Spring Boot 4.0.0 javadoc, so these should be the right ones, but still the annotation classes are not resolved:
* https://docs.spring.io/spring-boot/4.0-SNAPSHOT/api/java/org/springframework/boot/micrometer/metrics/test/autoconfigure/AutoConfigureMetrics.html
* https://docs.spring.io/spring-boot/api/java/org/springframework/boot/micrometer/tracing/test/autoconfigure/AutoConfigureTracing.html
