目录标题
问题描述
在一个springboot、spring、maven项目中,由于项目创建之初没有添加测试依赖,现在打算给项目添加测试。
解决步骤
1、pom中添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
2、构建测试类