I am a novice Java Spring programmer. I am moving some test code from an older jHipster project to a new one. I added this to the pom.xml to fix a compilation error. This fixed my compilation issue but caused runtime errors.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
<version>1.5.7.RELEASE</version>
</dependency>
I am now getting these runtime errors.
Caused by: java.lang.IllegalStateException: Error processing condition on org.springframework.boot.actuate.autoconfigure.metrics.MetricsEndpointAutoConfiguration Caused by: java.lang.IllegalArgumentException: Could not find class [org.springframework.boot.actuate.metrics.MetricsEndpoint]
<spring-boot.version>2.2.5.RELEASE</spring-boot.version>
If I remove spring-boot-actuator
incompatible types: java.time.Instant cannot be converted to java.util.Date cannot access org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter method does not override or implement a method from a supertype
Does anyone know how to fix?