【问题标题】:What is Spring boot 2.5 junit version?Spring boot 2.5 junit 版本是什么?
【发布时间】:2021-09-21 16:02:31
【问题描述】:

我正在使用最新版本的 spring boot。 spring boot2.5.4junit 版本是什么?

spring-boot-starter-test

为了使用Junit5,我们应该在spring boot 2.5.4中添加jupiter依赖?

【问题讨论】:

标签: spring-boot junit5


【解决方案1】:

mvnrepository.com 你会找到它:

org.junit.jupiter » junit-jupiter

版本

5.7.2

你也可以点击pom.xml来显示相关依赖:

<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter</artifactId>
    <version>5.7.2</version>
    <scope>compile</scope>
</dependency>

【讨论】:

  • 注意:junit-jupiterspring-boot-starter-test 中的传递 依赖项。它具有默认 scope compile,因此您无需将其单独添加到您的项目 (POM) - 它已经包含在测试启动器中。
猜你喜欢
  • 2018-02-18
  • 2021-06-29
  • 2018-05-21
  • 1970-01-01
  • 2019-07-03
  • 2020-09-20
  • 2020-11-18
  • 1970-01-01
相关资源
最近更新 更多