Spring_Boot专栏 | ||
---|---|---|
上一篇 | 主目录 | 下一篇 |
目录
【前言】
测试在项目开发中很常见,springboot如何进行测试呢?
需要依赖的jar包(spring-boot-starter-test
)在pom文件配置:
<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>
</exclusions>
</dependency>