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 -
@AutoConfigureTracing
I already added the dependencies below, but without result yet: the compiler can't resolve these annotations.
org.springframework.boot
spring-boot-actuator-autoconfigure
compile
org.springframework.boot
spring-boot-test-autoconfigure
test
org.springframework.boot
spring-boot-autoconfigure
${spring-boot.version}
org.springframework.boot
spring-boot-starter-classic
The latter dependency
spring-boot-starter-classic
should 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