Pha*_*ate 11 spring spring-test maven spring-boot
我正在处理一个项目,我看到定义了这些依赖项:
<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>
Run Code Online (Sandbox Code Playgroud)
但是我不明白为什么有 2 个工件用于 Spring Boot 测试,它们之间有什么区别?也许对于后者,我也在导入前者?
| 归档时间: |
|
| 查看次数: |
2060 次 |
| 最近记录: |