在项目中添加Spring Boot执行器依赖项后出现Junit错误

时间:2019-11-06 17:53:14

标签: java spring-boot junit dependencies spring-boot-actuator

我有一个可以正常工作的项目,但是一旦我在pom.xml中添加Spring boot作动器依赖项,我在构建项目时就会收到以下错误->

Error:java: cannot access org.junit.platform.commons.annotation.Testable
  class file for org.junit.platform.commons.annotation.Testable not found
  Consult the following stack trace for details.
  com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.junit.platform.commons.annotation.Testable not found

我添加的依赖项是->

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-actuator</artifactId>
</dependency>

我尝试过在线查找修复程序,但未成功。

0 个答案:

没有答案