【发布时间】:2020-07-21 21:11:06
【问题描述】:
我正在处理一个项目,我看到定义了这些依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
但我不明白为什么有 2 个工件用于使用 Spring Boot 进行测试,它们之间有什么区别?也许是后者,我也在导入前者?
【问题讨论】:
标签: spring spring-boot maven spring-test